Created
April 9, 2019 09:41
-
-
Save lenybernard/1dec8514a8eab3a24e0bbd93876aa686 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerName mywebsite.com | |
ProxyPreserveHost On | |
ProxyPass / http://127.0.0.1:7051/ | |
ProxyPassReverse / http://127.0.0.1:7051/ | |
ProxyPassReverseCookieDomain 127.0.0.1 mywebsite.com | |
+ RewriteEngine on | |
+ RewriteCond %{SERVER_NAME} =mywebsite.com | |
+ RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment