From ece6c19ca3bb95882e8712775dc8983798de62c2 Mon Sep 17 00:00:00 2001 From: william mantly Date: Sat, 1 Oct 2016 15:37:05 -0400 Subject: [PATCH] node --- create.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create.sh b/create.sh index 605b6ea..7ca526e 100644 --- a/create.sh +++ b/create.sh @@ -62,7 +62,7 @@ echo " WSGIScriptAlias / $workingPath/project/wsgi.py" >> /etc/apache2/sites- echo " # socket.io conf" >> /etc/apache2/sites-enabled/$name.conf echo " RewriteEngine On" >> /etc/apache2/sites-enabled/$name.conf echo " RewriteCond %{REQUEST_URI} ^/socket.io/1/websocket [NC]" >> /etc/apache2/sites-enabled/$name.conf -echo " RewriteRule /(.*) ws://localhost:$nodePort/$1 [P,L]" >> /etc/apache2/sites-enabled/$name.conf +echo " RewriteRule /(.*) ws://localhost:$nodePort/\$1 [P,L]" >> /etc/apache2/sites-enabled/$name.conf echo " ProxyPass /socket.io http://localhost:$nodePort/socket.io" >> /etc/apache2/sites-enabled/$name.conf echo " ProxyPassReverse /socket.io http://localhost:$nodePort/socket.io" >> /etc/apache2/sites-enabled/$name.conf echo "" >> /etc/apache2/sites-enabled/$name.conf