Created
August 1, 2019 18:10
-
-
Save anushshukla/6783b6945ce13ea80ba2902e73cbfa2f to your computer and use it in GitHub Desktop.
Reverse Proxy Vhost Config file in Apache Server
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 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