added redirect
This commit is contained in:
parent
05c7c1bc9e
commit
6c24878a64
@ -18,14 +18,14 @@
|
||||
<Directory /usr/lib/cgi-bin>
|
||||
SSLOptions +StdEnvVars
|
||||
</Directory>
|
||||
ProxyPreserveHost On
|
||||
SSLProxyEngine On
|
||||
SSLProxyCheckPeerCN on
|
||||
SSLProxyCheckPeerExpire on
|
||||
RequestHeader set X-Forwarded-Proto "https"
|
||||
RequestHeader set X-Forwarded-Port "443"
|
||||
ProxyPass / http://127.0.0.1:8080/
|
||||
ProxyPassReverse / http://127.0.0.1:8080/
|
||||
ProxyPreserveHost On
|
||||
SSLProxyEngine On
|
||||
SSLProxyCheckPeerCN on
|
||||
SSLProxyCheckPeerExpire on
|
||||
RequestHeader set X-Forwarded-Proto "https"
|
||||
RequestHeader set X-Forwarded-Port "443"
|
||||
ProxyPass / http://127.0.0.1:8080/
|
||||
ProxyPassReverse / http://127.0.0.1:8080/
|
||||
|
||||
</VirtualHost>
|
||||
</IfModule>
|
||||
|
@ -6,4 +6,9 @@
|
||||
|
||||
ErrorLog ${APACHE_LOG_DIR}/{{ inventory_hostname }}.error.log
|
||||
CustomLog ${APACHE_LOG_DIR}/{{ inventory_hostname }}.access.log combined
|
||||
|
||||
#rewrite transparent to https, keep uri
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTPS} off
|
||||
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
|
||||
</VirtualHost>
|
||||
|
Loading…
Reference in New Issue
Block a user