Created
August 11, 2020 10:17
-
-
Save terence1990/ad7111f2c52e706e68d0d635323acd67 to your computer and use it in GitHub Desktop.
Htaccess config for reverse proxy nginx to a node port
This file contains 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_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