Skip to content

Instantly share code, notes, and snippets.

@terence1990
Created August 11, 2020 10:17
Show Gist options
  • Save terence1990/ad7111f2c52e706e68d0d635323acd67 to your computer and use it in GitHub Desktop.
Save terence1990/ad7111f2c52e706e68d0d635323acd67 to your computer and use it in GitHub Desktop.
Htaccess config for reverse proxy nginx to a node port
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule index.html http://localhost:3000/ [P]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) http://localhost:3000/$1 [P]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment