From f1b329b7d7924da03d45a4d2a88ff28f0bbe92a5 Mon Sep 17 00:00:00 2001 From: william mantly Date: Sat, 1 Oct 2016 16:45:27 -0400 Subject: [PATCH] node --- create.sh | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/create.sh b/create.sh index b2a71d9..f7422cb 100644 --- a/create.sh +++ b/create.sh @@ -62,14 +62,17 @@ echo " WSGIProcessGroup $name" >> /etc/apache2/sites-enabled/$name.conf echo " WSGIScriptAlias / $workingPath/project/wsgi.py" >> /etc/apache2/sites-enabled/$name.conf echo " # socket.io conf" >> /etc/apache2/sites-enabled/$name.conf -echo " RewriteEngine on" >> /etc/apache2/sites-enabled/$name.conf +echo " " >> /etc/apache2/sites-enabled/$name.conf +echo " ProxyPass http://localhost:$nodePort/socket.io" >> /etc/apache2/sites-enabled/$name.conf +echo " ProxyPassReverse http://localhost:$nodePort/socket.io" >> /etc/apache2/sites-enabled/$name.conf +echo " " >> /etc/apache2/sites-enabled/$name.conf -echo " RewriteCond %{QUERY_STRING} transport=polling" >> /etc/apache2/sites-enabled/$name.conf -echo " RewriteRule /(.*)$ http://localhost:$nodePort/\$1 [P]" >> /etc/apache2/sites-enabled/$name.conf - -echo " ProxyRequests off" >> /etc/apache2/sites-enabled/$name.conf -echo " ProxyPass /socket.io/ ws://localhost:$nodePort/\socket.io/" >> /etc/apache2/sites-enabled/$name.conf -echo " ProxyPassReverse /socket.io/ ws://localhost:$nodePort/\socket.io/" >> /etc/apache2/sites-enabled/$name.conf +# echo " RewriteEngine on" >> /etc/apache2/sites-enabled/$name.conf +# echo " RewriteCond %{QUERY_STRING} transport=polling" >> /etc/apache2/sites-enabled/$name.conf +# echo " RewriteRule /(.*)$ http://localhost:$nodePort/\$1 [P]" >> /etc/apache2/sites-enabled/$name.conf +# echo " ProxyRequests off" >> /etc/apache2/sites-enabled/$name.conf +# echo " ProxyPass /socket.io/ ws://localhost:$nodePort/\socket.io/" >> /etc/apache2/sites-enabled/$name.conf +# echo " ProxyPassReverse /socket.io/ ws://localhost:$nodePort/\socket.io/" >> /etc/apache2/sites-enabled/$name.conf # echo " ProxyPreserveHost On" >> /etc/apache2/sites-enabled/$name.conf # echo " # these next two lines are to enable the wstunnel" >> /etc/apache2/sites-enabled/$name.conf