fuel-library/deployment/puppet/cobbler/templates/httpd_nailgun.conf.erb
Stanislaw Bogatkin 94027ba91b Redirect all but cobbler and api from port 80
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
2015-09-22 09:06:04 +00:00

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]