Created
January 17, 2018 14:25
-
-
Save olegbuevich/884b8f1554b7ca096af58a22a191848a to your computer and use it in GitHub Desktop.
.htaccess proxy nodejs app with websockets
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
# a2enmod proxy_wstunnel | |
RewriteEngine On | |
RewriteCond %{HTTP:Upgrade} websocket [NC] | |
RewriteCond %{QUERY_STRING} transport=websocket [NC] | |
RewriteRule ^(.*) ws://localhost:10081/$1 [P] | |
RewriteRule ^(.*) http://localhost:10081/$1 [P] |
SAME DUDE!
How to write .htaccess what will not indicate subdomains, or what should i add to subdomain .htaccess to fix my wordpress site.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've been searching for these exact lines of codes for weeeeeeeeeeeeeeeeeeeks.
I love you and you have no idea!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!