Skip to content

Instantly share code, notes, and snippets.

@soham2008xyz
Created November 23, 2016 01:52
Show Gist options
  • Save soham2008xyz/8a3f1f7f2ec4f8d19c43c09b3f3074ad to your computer and use it in GitHub Desktop.
Save soham2008xyz/8a3f1f7f2ec4f8d19c43c09b3f3074ad to your computer and use it in GitHub Desktop.
Reverse proxy on any shared hosting!
RewriteEngine On
RewriteRule ^$ http://127.0.0.1:8000/ [P,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ http://127.0.0.1:8000/$1 [P,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment