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:
parent
65e9606d19
commit
c7cc44d075
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user