From b807431573233120a5ba6a6c1d9a347afeebe0f8 Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Thu, 5 Mar 2026 11:53:15 +0100 Subject: [PATCH] Several changes to better configurations --- conf-available/ssl-global.conf | 3 ++ ...a.it.conf => chrome.giorgioravera.it.conf} | 19 ++++++---- sites-available/network.giorgioravera.it.conf | 37 +++++++++++++++++++ 3 files changed, 51 insertions(+), 8 deletions(-) create mode 100644 conf-available/ssl-global.conf rename sites-available/{cloud.giorgioravera.it.conf => chrome.giorgioravera.it.conf} (64%) create mode 100644 sites-available/network.giorgioravera.it.conf diff --git a/conf-available/ssl-global.conf b/conf-available/ssl-global.conf new file mode 100644 index 0000000..2a776ed --- /dev/null +++ b/conf-available/ssl-global.conf @@ -0,0 +1,3 @@ +SSLEngine on +SSLCertificateFile /etc/ssl/giorgioravera.it/fullchain.pem +SSLCertificateKeyFile /etc/ssl/giorgioravera.it/privkey.pem diff --git a/sites-available/cloud.giorgioravera.it.conf b/sites-available/chrome.giorgioravera.it.conf similarity index 64% rename from sites-available/cloud.giorgioravera.it.conf rename to sites-available/chrome.giorgioravera.it.conf index 7775062..31b424f 100644 --- a/sites-available/cloud.giorgioravera.it.conf +++ b/sites-available/chrome.giorgioravera.it.conf @@ -1,20 +1,23 @@ - ServerName cloud.giorgioravera.it + ServerName chrome.giorgioravera.it ServerAdmin giorgio@giorgioravera.it - Redirect permanent / https://cloud.giorgioravera.it + Redirect permanent / https://chrome.giorgioravera.it - ServerName cloud.giorgioravera.it + ServerName chrome.giorgioravera.it ServerAdmin giorgio@giorgioravera.it - ProxyPass / http://cloud.giorgioravera.it/ - ProxyPassReverse / http://cloud.giorgioravera.it/ + SSLProxyEngine on + ProxyPass / https://chrome.giorgioravera.it/ + ProxyPassReverse / https://chrome.giorgioravera.it/ + ProxyPass / wss://chrome.giorgioravera.it/ + ProxyPassReverse / wss://chrome.giorgioravera.it/ - RewriteEngine On - RewriteCond %{HTTP:upgrade} websocket [NC] - RewriteRule /(.*) ws://cloud.giorgioravera.it/$1 [L,P] + RewriteEngine on + RewriteCond %{HTTP:Upgrade} =websocket [NC] + RewriteRule /(.*) wss://chrome.giorgioravera.it:443/$1 [P,L] # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, # error, crit, alert, emerg. diff --git a/sites-available/network.giorgioravera.it.conf b/sites-available/network.giorgioravera.it.conf new file mode 100644 index 0000000..deeb9fc --- /dev/null +++ b/sites-available/network.giorgioravera.it.conf @@ -0,0 +1,37 @@ + + ServerName network.giorgioravera.it + ServerAdmin giorgio@giorgioravera.it + Redirect permanent / https://network.giorgioravera.it + + + + + ServerName network.giorgioravera.it + ServerAdmin giorgio@giorgioravera.it + + ProxyPreserveHost on + + #SSLProxyEngine on + #ProxyPass / https://network.giorgioravera.it/ + #ProxyPassReverse / https://network.giorgioravera.it/ + + ProxyPass / http://network.giorgioravera.it:8080/ + ProxyPassReverse / http://network.giorgioravera.it:8080/ + + # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, + # error, crit, alert, emerg. + # It is also possible to configure the loglevel for particular + # modules, e.g. + #LogLevel info ssl:warn + + ErrorLog ${APACHE_LOG_DIR}/error_network.log + CustomLog ${APACHE_LOG_DIR}/access_network.log combined + + # For most configuration files from conf-available/, which are + # enabled or disabled at a global level, it is possible to + # include a line for only one particular virtual host. For example the + # following line enables the CGI configuration for this host only + # after it has been globally disabled with "a2disconf". + #Include conf-available/serve-cgi-bin.conf + + -- 2.47.3