Redirect developer and docs from HTTP to HTTPS

Per discussion in the
http://lists.openstack.org/pipermail/openstack-docs/2017-January/009545.html
thread (continuing in
http://lists.openstack.org/pipermail/openstack-docs/2017-February/009617.html
the following month) we're ready to force all HTTP requests for
developer.openstack.org and docs.openstack.org to permanently
redirect to the HTTPS versions of the same pages.

Change-Id: I8be8dcd628b957eab147f76c0c7c812433c4bb48
This commit is contained in:
Jeremy Stanley 2017-02-10 14:45:12 +00:00
parent 65e9606d19
commit c7cc44d075
2 changed files with 2 additions and 20 deletions

View File

@ -11,16 +11,7 @@
<% end -%>
RewriteEngine on
DocumentRoot <%= @docroot %>
<Directory <%= @docroot %>>
Options Indexes FollowSymLinks MultiViews
Satisfy any
Require all granted
# Allow mod_rewrite rules
AllowOverride FileInfo
ErrorDocument 404 /errorpage.html
</Directory>
RewriteRule ^/(.*) https://<%= @srvname %>/$1 [last,redirect=permanent]
ErrorLog /var/log/<%= scope.lookupvar("httpd::params::apache_name") %>/<%= @name %>_error.log
LogLevel warn

View File

@ -11,16 +11,7 @@
<% end -%>
RewriteEngine on
DocumentRoot <%= @docroot %>
<Directory <%= @docroot %>>
Options Indexes FollowSymLinks MultiViews
Satisfy any
Require all granted
# Allow mod_rewrite rules
AllowOverride FileInfo
ErrorDocument 404 /errorpage.html
</Directory>
RewriteRule ^/(.*) https://<%= @srvname %>/$1 [last,redirect=permanent]
ErrorLog /var/log/<%= scope.lookupvar("httpd::params::apache_name") %>/<%= @name %>_error.log
LogLevel warn