Skip to content

Instantly share code, notes, and snippets.

@khasky
Created July 22, 2020 11:57
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 khasky/f93f9bb463e8ecee206e51375d31de9c to your computer and use it in GitHub Desktop.
Save khasky/f93f9bb463e8ecee206e51375d31de9c to your computer and use it in GitHub Desktop.
Apache2 reverse proxy for NodeJS server
<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