From: Giorgio Ravera Date: Thu, 5 Mar 2026 10:53:15 +0000 (+0100) Subject: Several changes to better configurations X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=b807431573233120a5ba6a6c1d9a347afeebe0f8;p=apache.git Several changes to better configurations --- 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/chrome.giorgioravera.it.conf b/sites-available/chrome.giorgioravera.it.conf new file mode 100644 index 0000000..31b424f --- /dev/null +++ b/sites-available/chrome.giorgioravera.it.conf @@ -0,0 +1,38 @@ + + ServerName chrome.giorgioravera.it + ServerAdmin giorgio@giorgioravera.it + Redirect permanent / https://chrome.giorgioravera.it + + + + + ServerName chrome.giorgioravera.it + ServerAdmin giorgio@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 /(.*) wss://chrome.giorgioravera.it:443/$1 [P,L] + + # 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.log + CustomLog ${APACHE_LOG_DIR}/access.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 + + diff --git a/sites-available/cloud.giorgioravera.it.conf b/sites-available/cloud.giorgioravera.it.conf deleted file mode 100644 index 7775062..0000000 --- a/sites-available/cloud.giorgioravera.it.conf +++ /dev/null @@ -1,35 +0,0 @@ - - ServerName cloud.giorgioravera.it - ServerAdmin giorgio@giorgioravera.it - Redirect permanent / https://cloud.giorgioravera.it - - - - - ServerName cloud.giorgioravera.it - ServerAdmin giorgio@giorgioravera.it - - ProxyPass / http://cloud.giorgioravera.it/ - ProxyPassReverse / http://cloud.giorgioravera.it/ - - RewriteEngine On - RewriteCond %{HTTP:upgrade} websocket [NC] - RewriteRule /(.*) ws://cloud.giorgioravera.it/$1 [L,P] - - # 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.log - CustomLog ${APACHE_LOG_DIR}/access.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 - - 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 + +