Created
July 22, 2020 11:57
-
-
Save khasky/f93f9bb463e8ecee206e51375d31de9c to your computer and use it in GitHub Desktop.
Apache2 reverse proxy for NodeJS 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
<IfModule mod_ssl.c> | |
<VirtualHost *:443> | |
# ...config | |
# NodeJS server start | |
ProxyRequests Off | |
ProxyPreserveHost On | |
ProxyVia Full | |
<Proxy *> | |
Require all granted | |
</Proxy> | |
<Location /home> | |
ProxyPass http://127.0.0.1:8080 | |
ProxyPassReverse http://127.0.0.1:8080 | |
</Location> | |
# NodeJS server end | |
</VirtualHost> | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment