94027ba91b
Redirect almost all from port 80 to port 8443 with SSL. Exclusions: * API still have redirected to port 8000. * Cobbler still uses port 80. Change-Id: I872bb1c29df4b4775166944db7941296b352d93c Closes-Bug: #1497397
8 lines
307 B
Plaintext
8 lines
307 B
Plaintext
# Force everything except cobbler and nailgun dir to port 8000
|
|
RewriteEngine on
|
|
RewriteCond %{HTTPS} off
|
|
RewriteRule ^/$ https://%{HTTP_HOST}:8443%{REQUEST_URI} [R=301,L]
|
|
RewriteCond %{HTTPS} off
|
|
RewriteCond %{REQUEST_URI} !^/(cblr|cobbler)
|
|
RewriteRule (.*) http://%{HTTP_HOST}:8000%{REQUEST_URI} [R=301,L]
|