diff --git a/source/resources/apps/web3/apache/sites-available/000-default-le-ssl.conf b/source/resources/apps/web3/apache/sites-available/default-ssl.conf similarity index 72% rename from source/resources/apps/web3/apache/sites-available/000-default-le-ssl.conf rename to source/resources/apps/web3/apache/sites-available/default-ssl.conf index 7c5fe39..fe3ee75 100644 --- a/source/resources/apps/web3/apache/sites-available/000-default-le-ssl.conf +++ b/source/resources/apps/web3/apache/sites-available/default-ssl.conf @@ -28,15 +28,15 @@ ProxyVia On SSLSessionTickets Off SSLOptions +StrictRequire - RewriteEngine on - RewriteCond %{SERVER_NAME} =vweb3.forksand.org [OR] - RewriteCond %{SERVER_NAME} =vweb3.forksand.net - RewriteRule ^ https://vweb3.forksand.com%{REQUEST_URI} [END,NE,R=permanent] - ProxyPreserveHost On - ProxyRequests off - AllowEncodedSlashes NoDecode - ProxyPass / http://localhost:8502/ nocanon - ProxyPassReverse / http://localhost:8502/ + RewriteEngine on + RewriteCond %{HTTP:Upgrade} =websocket + RewriteRule /(.*) ws://localhost:8501/$1 [P] + RewriteCond %{HTTP:Upgrade} !=websocket + RewriteRule /(.*) http://localhost:8501/$1 [P] + ProxyPassReverse / http://localhost:8501 + ProxyPreserveHost On + ProxyRequests off + AllowEncodedSlashes NoDecode