Skip to content

Instantly share code, notes, and snippets.

@ivandoric
Last active June 27, 2022 09:51
Show Gist options
  • Save ivandoric/0f20835c969a40ae3759cc6cd6b39be2 to your computer and use it in GitHub Desktop.
Save ivandoric/0f20835c969a40ae3759cc6cd6b39be2 to your computer and use it in GitHub Desktop.
.htaccess file for video tutorial about deploying Node apps to shared hosting. Checkout the video: https://www.youtube.com/watch?v=ebWJbbUT4TA
RewriteEngine On
RewriteRule ^$ http://127.0.0.1:8080/ [P,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ http://127.0.0.1:1337/$1 [P,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment