Skip to content

Instantly share code, notes, and snippets.

View terence1990's full-sized avatar

Terence O'Donoghue terence1990

View GitHub Profile
@terence1990
terence1990 / .htaccess
Created August 11, 2020 10:17
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>