Skip to content

Instantly share code, notes, and snippets.

@lenybernard
Created April 9, 2019 09:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lenybernard/1dec8514a8eab3a24e0bbd93876aa686 to your computer and use it in GitHub Desktop.
Save lenybernard/1dec8514a8eab3a24e0bbd93876aa686 to your computer and use it in GitHub Desktop.
<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