Skip to content

Instantly share code, notes, and snippets.

@anushshukla
Created August 1, 2019 18:10
Show Gist options
  • Select an option

  • Save anushshukla/6783b6945ce13ea80ba2902e73cbfa2f to your computer and use it in GitHub Desktop.

Select an option

Save anushshukla/6783b6945ce13ea80ba2902e73cbfa2f to your computer and use it in GitHub Desktop.
Reverse Proxy Vhost Config file in Apache Server
<VirtualHost *:80>
ServerName insertName.youSiteName.com
DocumentRoot /var/www/html/youSiteName.com
ProxyRequests on
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<Location />
ProxyPass http://127.0.0.1:3001/ retry=1 acquire=3000 timeout=600 Keepalive=On
ProxyPassReverse http://127.0.0.1:3001/
</Location>
</VirtualHost>
<VirtualHost *:443>
ServerName insertName.youSiteName.com
DocumentRoot /var/www/html/youSiteName.com
ProxyRequests on
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<Location />
ProxyPass http://127.0.0.1:3001/ retry=1 acquire=3000 timeout=600 Keepalive=On
ProxyPassReverse http://127.0.0.1:3001/
</Location>
SSLProxyEngine on
SSLEngine on
SSLCertificateFile /etc/ssl/certs/youSiteName.com.crt
SSLCertificateKeyFile /etc/ssl/private/youSiteName.com.key
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment