Skip to content

Instantly share code, notes, and snippets.

@manishprajapatidev
Last active April 28, 2020 04:39
Show Gist options
  • Save manishprajapatidev/bca3745dcac1019acc80d0fb8956e316 to your computer and use it in GitHub Desktop.
Save manishprajapatidev/bca3745dcac1019acc80d0fb8956e316 to your computer and use it in GitHub Desktop.
ProxyPass & ProxyPassReverse Configurations for SSL requests (apache2)
#sudo a2enmod proxy
#sudo service apache2 restart
<VirtualHost *:443>
ServerAdmin admin@koffeewithkode.com
ServerName www.koffeewithkode.com
ServerAlias koffeewithkode.com
SSLEngine On
SSLProxyEngine On
SSLCertificateFile "/etc/ssl/private/server.crt"
SSLCertificateKeyFile "/etc/ssl/private/server.key"
#SSLCertificateChainFile "/home/vas/synsis.live/certs/intermediate.pem"
ProxyRequests Off
#Admin
ProxyPass /admin http://localhost:4380/
ProxyPassReverse /admin http://localhost:4380/
ProxyPass /restaurant http://localhost:4382/
ProxyPassReverse /restaurant http://localhost:4382/
ProxyPass /sub-admin http://localhost:4385/
ProxyPassReverse /sub-admin http://localhost:4385/
#API
ProxyPass /admin-api http://localhost:4381/
ProxyPassReverse /admin-api http://localhost:4381/
ProxyPass /restaurant-api http://localhost:4379/
ProxyPassReverse /restaurant-api http://localhost:4379/
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment