]> git.giorgioravera.it Git - apache.git/commitdiff
Several changes to better configurations
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Thu, 5 Mar 2026 10:53:15 +0000 (11:53 +0100)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Thu, 5 Mar 2026 10:53:15 +0000 (11:53 +0100)
conf-available/ssl-global.conf [new file with mode: 0644]
sites-available/chrome.giorgioravera.it.conf [new file with mode: 0644]
sites-available/cloud.giorgioravera.it.conf [deleted file]
sites-available/network.giorgioravera.it.conf [new file with mode: 0644]

diff --git a/conf-available/ssl-global.conf b/conf-available/ssl-global.conf
new file mode 100644 (file)
index 0000000..2a776ed
--- /dev/null
@@ -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 (file)
index 0000000..31b424f
--- /dev/null
@@ -0,0 +1,38 @@
+<VirtualHost *:80>
+       ServerName chrome.giorgioravera.it
+       ServerAdmin giorgio@giorgioravera.it
+       Redirect permanent / https://chrome.giorgioravera.it
+</VirtualHost>
+
+<IfModule mod_ssl.c>
+       <VirtualHost *:443>
+               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
+       </VirtualHost>
+</IfModule>
diff --git a/sites-available/cloud.giorgioravera.it.conf b/sites-available/cloud.giorgioravera.it.conf
deleted file mode 100644 (file)
index 7775062..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<VirtualHost *:80>
-       ServerName cloud.giorgioravera.it
-       ServerAdmin giorgio@giorgioravera.it
-       Redirect permanent / https://cloud.giorgioravera.it
-</VirtualHost>
-
-<IfModule mod_ssl.c>
-       <VirtualHost *:443>
-               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
-       </VirtualHost>
-</IfModule>
diff --git a/sites-available/network.giorgioravera.it.conf b/sites-available/network.giorgioravera.it.conf
new file mode 100644 (file)
index 0000000..deeb9fc
--- /dev/null
@@ -0,0 +1,37 @@
+<VirtualHost *:80>
+       ServerName network.giorgioravera.it
+       ServerAdmin giorgio@giorgioravera.it
+       Redirect permanent / https://network.giorgioravera.it
+</VirtualHost>
+
+<IfModule mod_ssl.c>
+       <VirtualHost *:443>
+               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
+       </VirtualHost>
+</IfModule>