From 9bbe1dc6a16a85f46d4b59b161601c8f764b9ae8 Mon Sep 17 00:00:00 2001 From: forksand Date: Mon, 12 Apr 2021 20:48:59 -0600 Subject: [PATCH] proxy ok streamlit --- ...00-default-le-ssl.conf => default-ssl.conf} | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) rename source/resources/apps/web3/apache/sites-available/{000-default-le-ssl.conf => default-ssl.conf} (72%) 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