]> git.giorgioravera.it Git - apache.git/commitdiff
Removed local logs and created dedicated files
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Thu, 5 Mar 2026 11:01:16 +0000 (12:01 +0100)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Thu, 5 Mar 2026 11:01:16 +0000 (12:01 +0100)
23 files changed:
sites-available/000-default.conf
sites-available/ap1.giorgioravera.it.conf
sites-available/archivio.giorgioravera.it.conf
sites-available/asterisk.giorgioravera.it.conf
sites-available/code.giorgioravera.it.conf
sites-available/default-ssl.conf
sites-available/download.giorgioravera.it.conf
sites-available/fritz.giorgioravera.it.conf
sites-available/git.giorgioravera.it.conf
sites-available/home.giorgioravera.it.conf
sites-available/laura.giorgioravera.it.conf
sites-available/listanozze.giorgioravera.it.conf
sites-available/matrimonio.giorgioravera.it.conf
sites-available/nas.giorgioravera.it.conf
sites-available/pve.giorgioravera.it.conf
sites-available/roundcube.conf
sites-available/serverinfo.giorgioravera.it.conf
sites-available/svn.giorgioravera.it.conf
sites-available/template_normal.conf
sites-available/template_proxy.conf
sites-available/traefik.giorgioravera.it.conf
sites-available/webssh.giorgioravera.it.conf
sites-available/www.giorgioravera.it.conf

index 0f0b272e42f452b836e8130f9fbc218ce8632088..3b09568bd610fe762c41e1210bf4f28d438235aa 100644 (file)
@@ -7,11 +7,11 @@
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        #ServerName www.example.com
+       ServerName _default_
 
        ServerAdmin giorgio@giorgioravera.it
 
        #DocumentRoot /var/www/html
-       #DocumentRoot /var/www/www.giorgioravera.it/htdocs
        RewriteEngine on
        RewriteCond %{HTTPS} !=on
        RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [NE,R,L]
index 00aa1e70068e884ccaa682f659299b8a1877a509..f92c6793e729d5ee6d9513c1c03eee3893841a27 100644 (file)
@@ -9,12 +9,9 @@
                ServerName ap1.giorgioravera.it
                ServerAdmin giorgio@giorgioravera.it
 
-               ProxyPass / http://ap1.giorgioravera.it/
-               ProxyPassReverse / http://ap1.giorgioravera.it/
-
-               #SSLProxyEngine on
-               #ProxyPass / https://ap1.giorgioravera.it/
-               #ProxyPassReverse / https://ap1.giorgioravera.it/
+               SSLProxyEngine on
+               ProxyPass / https://ap1.giorgioravera.it/
+               ProxyPassReverse / https://ap1.giorgioravera.it/
 
                # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
                # error, crit, alert, emerg.
index e738d48b6cc9ad46da3a9d6a6c830966ebb3f57f..f4bb84f5920994b412c7ffbdf171df54dcd5e5bf 100644 (file)
@@ -11,7 +11,9 @@
 
                DocumentRoot /var/www/archivio.giorgioravera.it/htdocs
                <Directory /var/www/archivio.giorgioravera.it/htdocs>
-                  AllowOverride All
+                       Options FollowSymlinks
+                       AllowOverride All
+                       Require all granted
                </Directory>
                ScriptAlias /cgi-bin /var/www/archivio.giorgioravera.it/cgi-bin
 
                # modules, e.g.
                #LogLevel info ssl:warn
 
-               ErrorLog ${APACHE_LOG_DIR}/error.log
-               ErrorLog /var/www/archivio.giorgioravera.it/log/error.log
-               CustomLog ${APACHE_LOG_DIR}/access.log combined
-               CustomLog /var/www/archivio.giorgioravera.it/log/access.log combined
+               ErrorLog ${APACHE_LOG_DIR}/error_archivio.log
+               CustomLog ${APACHE_LOG_DIR}/access_archivio.log combined
 
                # For most configuration files from conf-available/, which are
                # enabled or disabled at a global level, it is possible to
index a07b7836ac23bc052e135cc955638cd80b6ba969..6761cd46728c066cfdc236a9579a373017787051 100644 (file)
@@ -19,8 +19,8 @@
                # modules, e.g.
                #LogLevel info ssl:warn
 
-               ErrorLog ${APACHE_LOG_DIR}/error.log
-               CustomLog ${APACHE_LOG_DIR}/access.log combined
+               ErrorLog ${APACHE_LOG_DIR}/error_asterisk.log
+               CustomLog ${APACHE_LOG_DIR}/access_asterisk.log combined
 
                # For most configuration files from conf-available/, which are
                # enabled or disabled at a global level, it is possible to
index ae1aecf240ce07810d5c3db8663ede4ddd27319e..d73d58fbb55cdb4d5be91acb1b2b34c4d0030bdb 100644 (file)
@@ -12,6 +12,8 @@
                SSLProxyEngine on
                ProxyPass / https://code.giorgioravera.it/
                ProxyPassReverse / https://code.giorgioravera.it/
+               ProxyPass / wss://code.giorgioravera.it/
+               ProxyPassReverse / wss://code.giorgioravera.it/
 
                RewriteEngine on
                RewriteCond %{HTTP:Upgrade} =websocket [NC]
index 3e4c04b9c2fb643141e5706cabd0e750560f8b95..c08218f5efb13a60232f7f5641ea42cca461f57e 100644 (file)
@@ -1,13 +1,14 @@
 <VirtualHost *:443>
+       ServerName _default_
+
        ServerAdmin giorgio@giorgioravera.it
 
-       #DocumentRoot /var/www/html
-       DocumentRoot /var/www/www.giorgioravera.it/htdocs
-       <Directory /var/www/www.giorgioravera.it/htdocs>
+       DocumentRoot /var/www/html
+       <Directory /var/www/html>
                Options FollowSymlinks
                AllowOverride All
+               Require all granted
        </Directory>
-       ScriptAlias /cgi-bin /var/www/www.giorgioravera.it/cgi-bin
 
        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
@@ -16,9 +17,7 @@
        #LogLevel info ssl:warn
 
        ErrorLog ${APACHE_LOG_DIR}/error.log
-       ErrorLog /var/www/www.giorgioravera.it/log/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
-       CustomLog /var/www/www.giorgioravera.it/log/access.log combined
 
        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
@@ -38,7 +37,7 @@
        #   SSLCertificateFile directive is needed.
        #SSLCertificateFile      /etc/ssl/certs/ssl-cert-snakeoil.pem
        #SSLCertificateKeyFile   /etc/ssl/private/ssl-cert-snakeoil.key
-       SSLCertificateFile /etc/ssl/giorgioravera.it/cert.pem
+       SSLCertificateFile /etc/ssl/giorgioravera.it/fullchain.pem
        SSLCertificateKeyFile /etc/ssl/giorgioravera.it/privkey.pem
 
        #   Server Certificate Chain:
@@ -49,7 +48,6 @@
        #   when the CA certificates are directly appended to the server
        #   certificate for convinience.
        #SSLCertificateChainFile /etc/apache2/ssl.crt/server-ca.crt
-       SSLCertificateChainFile /etc/ssl/giorgioravera.it/chain.pem
 
        #   Certificate Authority (CA):
        #   Set the CA certificate verification path where to find CA
index d260759d64a47ba3f4b494fbde5f80ae1f3e1188..bfd2314c8e75dfabc26bfd1c4bf21b00c081b84d 100644 (file)
@@ -9,6 +9,8 @@
                ServerName download.giorgioravera.it
                ServerAdmin giorgio@giorgioravera.it
 
+               ProxyPreserveHost on
+
                SSLProxyEngine on
                ProxyPass / https://download.giorgioravera.it/
                ProxyPassReverse / https://download.giorgioravera.it/
@@ -19,8 +21,8 @@
                # modules, e.g.
                #LogLevel info ssl:warn
 
-               ErrorLog ${APACHE_LOG_DIR}/error.log
-               CustomLog ${APACHE_LOG_DIR}/access.log combined
+               ErrorLog ${APACHE_LOG_DIR}/error_download.log
+               CustomLog ${APACHE_LOG_DIR}/access_download.log combined
 
                # For most configuration files from conf-available/, which are
                # enabled or disabled at a global level, it is possible to
index 9312cc63695327abfe7c76151d9020b811324add..7c0372210a1a23a6485dcfff6e53054fbfbab2d6 100644 (file)
@@ -9,12 +9,9 @@
                ServerName fritz.giorgioravera.it
                ServerAdmin giorgio@giorgioravera.it
 
-               ProxyPass / http://fritz.giorgioravera.it/
-               ProxyPassReverse / http://fritz.giorgioravera.it/
-
-               #SSLProxyEngine on
-               #ProxyPass / https://fritz.giorgioravera.it/
-               #ProxyPassReverse / https://fritz.giorgioravera.it/
+               SSLProxyEngine on
+               ProxyPass / https://fritz.giorgioravera.it/
+               ProxyPassReverse / https://fritz.giorgioravera.it/
 
                # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
                # error, crit, alert, emerg.
index 7b464d055c221b8a86a6538b0c2d19999dea75d9..692d2ea618394badfd397ad71fa41611c2f97fd6 100644 (file)
@@ -14,6 +14,7 @@
                        Options FollowSymlinks ExecCGI
                        AllowOverride All
                        AddHandler cgi-script .cgi
+                       Require all granted
                        DirectoryIndex gitweb.cgi
 
                        AuthType Basic
                # modules, e.g.
                #LogLevel info ssl:warn
 
-               ErrorLog ${APACHE_LOG_DIR}/error.log
-               ErrorLog /var/www/git.giorgioravera.it/log/error.log
-               CustomLog ${APACHE_LOG_DIR}/access.log combined
-               CustomLog /var/www/git.giorgioravera.it/log/access.log combined
+               ErrorLog ${APACHE_LOG_DIR}/error_git.log
+               CustomLog ${APACHE_LOG_DIR}/access_git.log combined
 
                # For most configuration files from conf-available/, which are
                # enabled or disabled at a global level, it is possible to
index d7ee4871fe39aabf77c5460c0986679c0798a656..043db5bfc44fb73b729f27454b760b713220674f 100644 (file)
@@ -9,22 +9,17 @@
                ServerName home.giorgioravera.it
                ServerAdmin giorgio@giorgioravera.it
 
-               #ProxyPass /api/websocket ws://home.giorgioravera.it:8123/api/websocket
-               #ProxyPassReverse /api/websocket ws://home.giorgioravera.it:8123/api/websocket
-               #ProxyPass / http://home.giorgioravera.it:8123/
-               #ProxyPassReverse / http://home.giorgioravera.it:8123/
+                ProxyPreserveHost on
 
-                SSLProxyEngine on
+               SSLProxyEngine on
                ProxyPass / https://home.giorgioravera.it/
                ProxyPassReverse / https://home.giorgioravera.it/
+               ProxyPass / wss://home.giorgioravera.it/
+               ProxyPassReverse / wss://home.giorgioravera.it/
 
                RewriteEngine on
-               #RewriteCond %{HTTP:Upgrade} =websocket [NC]
-               #RewriteRule /(.*)  ws://home.giorgioravera.it:8123/$1 [P,L]
+               RewriteCond %{HTTP:Upgrade} =websocket [NC]
                RewriteRule /(.*)  wss://home.giorgioravera.it/$1 [P,L]
-               #RewriteCond %{HTTP:Upgrade} !=websocket [NC]
-               #RewriteRule /(.*)  http://home.giorgioravera.it:8123/$1 [P,L]
-               RewriteRule /(.*)  https://home.giorgioravera.it/$1 [P,L]
 
                # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
                # error, crit, alert, emerg.
index 6bdcc3fd3f34399e782e598994a1a541b3012035..6223ea6a0f314921b2a8c2fec6b813155c36e3f4 100644 (file)
@@ -1,29 +1,35 @@
 <VirtualHost *:80>
        ServerName laura.giorgioravera.it
        ServerAdmin giorgio@giorgioravera.it
+       Redirect permanent / https://laura.giorgioravera.it
+</VirtualHost>
 
-       DocumentRoot /var/www/laura.giorgioravera.it/htdocs
-       <Directory /var/www/laura.giorgioravera.it/htdocs>
-               AllowOverride All
-       </Directory>
-       ScriptAlias /cgi-bin /var/www/laura.giorgioravera.it/cgi-bin
-       SuExecUserGroup "lalaura" "casa"
+<IfModule mod_ssl.c>
+       <VirtualHost *:443>
+               ServerName laura.giorgioravera.it
+               ServerAdmin giorgio@giorgioravera.it
 
-       # 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
+               DocumentRoot /var/www/laura.giorgioravera.it/htdocs
+               <Directory /var/www/laura.giorgioravera.it/htdocs>
+                       AllowOverride All
+               </Directory>
+               ScriptAlias /cgi-bin /var/www/laura.giorgioravera.it/cgi-bin
+               SuExecUserGroup "lalaura" "casa"
 
-       ErrorLog ${APACHE_LOG_DIR}/error.log
-       ErrorLog /var/www/laura.giorgioravera.it/log/error.log
-       CustomLog ${APACHE_LOG_DIR}/access.log combined
-       CustomLog /var/www/laura.giorgioravera.it/log/access.log combined
+               # 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
 
-       # 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>
+               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>
index 81dd625b14b2c5bba97714ed001f133fd94f631b..7ed9dc11773260dcdd9f6b3e0b428b1293215f8c 100644 (file)
@@ -1,26 +1,32 @@
 <VirtualHost *:80>
        ServerName listanozze.giorgioravera.it
        ServerAdmin giorgio@giorgioravera.it
+       Redirect permanent / https://listanozze.giorgioravera.it
+</VirtualHost>
 
-       DocumentRoot /var/www/wedding.giorgioravera.it/htdocs
-       ScriptAlias /cgi-bin /var/www/wedding.giorgioravera.it/cgi-bin
-       SuExecUserGroup "xraver" "casa"
+<IfModule mod_ssl.c>
+       <VirtualHost *:443>
+               ServerName listanozze.giorgioravera.it
+               ServerAdmin giorgio@giorgioravera.it
 
-       # 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
+               DocumentRoot /var/www/listanozze.giorgioravera.it/htdocs
+               ScriptAlias /cgi-bin /var/www/listanozze.giorgioravera.it/cgi-bin
+               SuExecUserGroup "xraver" "casa"
 
-       ErrorLog ${APACHE_LOG_DIR}/error.log
-       ErrorLog /var/www/wedding.giorgioravera.it/log/error.log
-       CustomLog ${APACHE_LOG_DIR}/access.log combined
-       CustomLog /var/www/wedding.giorgioravera.it/log/access.log combined
+               # 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
 
-       # 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>
+               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>
index ca715e251383fb8228d23161477c77febd4352f4..a76ed48a49e9f89e2344ddbfa6ccb0073537f35e 100644 (file)
@@ -1,26 +1,32 @@
 <VirtualHost *:80>
        ServerName matrimonio.giorgioravera.it
        ServerAdmin giorgio@giorgioravera.it
+       Redirect permanent / https://matrimonio.giorgioravera.it
+</VirtualHost>
 
-       DocumentRoot /var/www/matrimonio.giorgioravera.it/htdocs
-       ScriptAlias /cgi-bin /var/www/matrimonio.giorgioravera.it/cgi-bin
-       SuExecUserGroup "xraver" "casa"
+<IfModule mod_ssl.c>
+       <VirtualHost *:443>
+               ServerName matrimonio.giorgioravera.it
+               ServerAdmin giorgio@giorgioravera.it
 
-       # 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
+               DocumentRoot /var/www/matrimonio.giorgioravera.it/htdocs
+               ScriptAlias /cgi-bin /var/www/matrimonio.giorgioravera.it/cgi-bin
+               SuExecUserGroup "xraver" "casa"
 
-       ErrorLog ${APACHE_LOG_DIR}/error.log
-       ErrorLog /var/www/matrimonio.giorgioravera.it/log/error.log
-       CustomLog ${APACHE_LOG_DIR}/access.log combined
-       CustomLog /var/www/matrimonio.giorgioravera.it/log/access.log combined
+               # 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
 
-       # 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>
+               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>
index a200d8eac9a13aecdd44a8ef99125efa37c8debe..7b76b84080a298bad29164e398199b0a43c622d8 100644 (file)
@@ -19,8 +19,8 @@
                # modules, e.g.
                #LogLevel info ssl:warn
 
-               ErrorLog ${APACHE_LOG_DIR}/error.log
-               CustomLog ${APACHE_LOG_DIR}/access.log combined
+               ErrorLog ${APACHE_LOG_DIR}/error_nas.log
+               CustomLog ${APACHE_LOG_DIR}/access_nas.log combined
 
                # For most configuration files from conf-available/, which are
                # enabled or disabled at a global level, it is possible to
index c1a9bb1d92c5f8daf53ae661122a2fa15cf7e040..b281e7d00c555622d6f0b6dd3b8913ebe14e56e1 100644 (file)
                SSLProxyEngine on
                ProxyPass / https://pve.giorgioravera.it:8006/
                ProxyPassReverse / https://pve.giorgioravera.it:8006/
+               ProxyPass / wss://pve.giorgioravera.it:8006/
+               ProxyPassReverse / wss://pve.giorgioravera.it:8006/
 
-               RewriteEngine On
-               RewriteCond %{HTTP:upgrade} websocket [NC]
-               RewriteRule /(.*) wss://pve.giorgioravera.it:8006/$1 [L,P]
+               RewriteEngine on
+               RewriteCond %{HTTP:Upgrade} =websocket [NC]
+               RewriteRule /(.*) wss://pve.giorgioravera.it:8006/$1 [P,L]
 
                # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
                # error, crit, alert, emerg.
index 1479b1430dd2ac322b673adf71d6bc44d5cd56a5..7cee3ba9eb529bbde24ba40293182dd5f7fb60c7 100644 (file)
@@ -17,8 +17,8 @@
                # modules, e.g.
                #LogLevel info ssl:warn
 
-               ErrorLog ${APACHE_LOG_DIR}/error.log
-               CustomLog ${APACHE_LOG_DIR}/access.log combined
+               ErrorLog ${APACHE_LOG_DIR}/error_mail.log
+               CustomLog ${APACHE_LOG_DIR}/access_mail.log combined
 
                # For most configuration files from conf-available/, which are
                # enabled or disabled at a global level, it is possible to
index f6452b67b5a6562dfe7f8eb403d750e69381dfa8..5127d2d376b3cc05223db6422d4258a7070e7a66 100644 (file)
                # modules, e.g.
                #LogLevel info ssl:warn
 
-               ErrorLog ${APACHE_LOG_DIR}/error.log
-               ErrorLog /var/www/serverinfo.giorgioravera.it/log/error.log
-               CustomLog ${APACHE_LOG_DIR}/access.log combined
-               CustomLog /var/www/serverinfo.giorgioravera.it/log/access.log combined
+               ErrorLog ${APACHE_LOG_DIR}/error_serverinfo.log
+               CustomLog ${APACHE_LOG_DIR}/access_serverinfo.log combined
 
                # For most configuration files from conf-available/, which are
                # enabled or disabled at a global level, it is possible to
index f2b53fa0488007dd03227603fa88122704bffb56..8db9d95adf9c1f295c06a08fab17b00f9f539ce6 100644 (file)
@@ -11,7 +11,9 @@
 
                DocumentRoot /var/www/svn.giorgioravera.it/htdocs
                <Directory /var/www/svn.giorgioravera.it/htdocs>
-                  AllowOverride All
+                       Options FollowSymlinks
+                       AllowOverride All
+                       Require all granted
                </Directory>
                SuExecUserGroup "subversion" "subversion"
 
                # modules, e.g.
                #LogLevel info ssl:warn
 
-               ErrorLog ${APACHE_LOG_DIR}/error.log
-               ErrorLog /var/www/svn.giorgioravera.it/log/error.log
-               CustomLog ${APACHE_LOG_DIR}/access.log combined
-               CustomLog /var/www/svn.giorgioravera.it/log/accss.log combined
+               ErrorLog ${APACHE_LOG_DIR}/error_svn.log
+               CustomLog ${APACHE_LOG_DIR}/access_svn.log combined
 
                # For most configuration files from conf-available/, which are
                # enabled or disabled at a global level, it is possible to
@@ -33,9 +33,6 @@
                # after it has been globally disabled with "a2disconf".
                #Include conf-available/serve-cgi-bin.conf
 
-               # Include websvn configuration
-               #Include conf-available/websvn.conf
-
                # Include repository configurations
                Include svn/*
        </VirtualHost>
index 2636afb13db930796d02322a8ea75527364b5b66..d0abbb917ffabc778ebf41e04a0a7ce2c367b353 100644 (file)
@@ -1,26 +1,36 @@
 <VirtualHost *:80>
        ServerName SERVERNAME.giorgioravera.it
        ServerAdmin giorgio@giorgioravera.it
+       Redirect permanent / https://SERVERNAME.giorgioravera.it
+</VirtualHost>
 
-       DocumentRoot /var/www/SERVERNAME.giorgioravera.it/htdocs
-       ScriptAlias /cgi-bin /var/www/SERVERNAME.giorgioravera.it/cgi-bin
-       SuExecUserGroup "USERNAME" "USERGROUP"
+<IfModule mod_ssl.c>
+       <VirtualHost *:443>
+               ServerName SERVERNAME.giorgioravera.it
+               ServerAdmin giorgio@giorgioravera.it
 
-       # 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
+               DocumentRoot /var/www/SERVERNAME.giorgioravera.it/htdocs
+               <Directory /var/SERVERNAME/www.giorgioravera.it/htdocs>
+                       Options FollowSymlinks
+                       AllowOverride All
+                       Require all granted
+               </Directory>
+               ScriptAlias /cgi-bin /var/www/SERVERNAME.giorgioravera.it/cgi-bin
 
-       ErrorLog ${APACHE_LOG_DIR}/error.log
-       ErrorLog /var/www/SERVERNAME.giorgioravera.it/log/error.log
-       CustomLog ${APACHE_LOG_DIR}/access.log combined
-       CustomLog /var/www/SERVERNAME.giorgioravera.it/log/access.log combined
+               # 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
 
-       # 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>
+               ErrorLog /var/www/SERVERNAME.giorgioravera.it/log/error.log
+               CustomLog /var/www/SERVERNAME.giorgioravera.it/log/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>
index beda40e85836726f56d6c2091bf564d6979b9e08..6f5150458d259b5209e12a031ed54fcd3b08fba1 100644 (file)
@@ -1,7 +1,7 @@
 <VirtualHost *:80>
        ServerName SERVERNAME.giorgioravera.it
        ServerAdmin giorgio@giorgioravera.it
-       Redirect permanent / https://SERVERNAME
+       Redirect permanent / https://SERVERNAME.giorgioravera.it
 </VirtualHost>
 
 <IfModule mod_ssl.c>
@@ -9,8 +9,15 @@
                ServerName SERVERNAME.giorgioravera.it
                ServerAdmin giorgio@giorgioravera.it
 
-               ProxyPass / http://SERVERNAME.giorgioravera.it/
-               ProxyPassReverse / http://SERVERNAME.giorgioravera.it/
+               SSLProxyEngine on
+               ProxyPass / https://SERVERNAME.giorgioravera.it/
+               ProxyPassReverse / https://SERVERNAME.giorgioravera.it/
+               ProxyPass / wss://SERVERNAME.giorgioravera.it/
+               ProxyPassReverse / wss://SERVERNAME.giorgioravera.it/
+
+               RewriteEngine on
+               RewriteCond %{HTTP:Upgrade} =websocket [NC]
+               RewriteRule /(.*)  wss://SERVERNAME.giorgioravera.it/$1 [P,L]
 
                # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
                # error, crit, alert, emerg.
@@ -18,8 +25,8 @@
                # modules, e.g.
                #LogLevel info ssl:warn
 
-               ErrorLog ${APACHE_LOG_DIR}/error.log
-               CustomLog ${APACHE_LOG_DIR}/access.log combined
+               ErrorLog ${APACHE_LOG_DIR}/error_SERVERNAME.log
+               CustomLog ${APACHE_LOG_DIR}/access_SERVERNAME.log combined
 
                # For most configuration files from conf-available/, which are
                # enabled or disabled at a global level, it is possible to
index 627cac923c5bb87415e0794ca446219c998c5545..727ad7f1dca3586a44fb4e7685f107ade7dcf297 100644 (file)
@@ -9,9 +9,6 @@
                ServerName traefik.giorgioravera.it
                ServerAdmin giorgio@giorgioravera.it
 
-               #ProxyPass / http://traefik.giorgioravera.it/
-               #ProxyPassReverse / http://traefik.giorgioravera.it/
-
                SSLProxyEngine on
                ProxyPass / https://traefik.giorgioravera.it/
                ProxyPassReverse / https://traefik.giorgioravera.it/
index d7989f3f93dcfe71e912a00027fba0a6a2e41706..1a624ccf0cc25492cd96e006332d8f150c092f2c 100644 (file)
@@ -9,35 +9,15 @@
                ServerName webssh.giorgioravera.it
                ServerAdmin giorgio@giorgioravera.it
 
-               <Location />
-                       AuthType Basic
-                       AuthName "Area Protetta"
-                       AuthBasicAuthoritative on
-                       AuthBasicProvider ldap
-
-                       AuthLDAPURL "ldap://localhost/dc=giorgioravera,dc=it?uid"
-                       AuthLDAPGroupAttribute memberUid
-                       AuthLDAPGroupAttributeIsDN off
-                       #AuthLDAPMaxSubGroupDepth 10
-                       #AuthLDAPSubGroupAttribute memberUid
-                       #AuthLDAPSubGroupClass groupOfNames groupOfUniqueNames
-                       Require ldap-group cn=ssh,ou=Groups,dc=giorgioravera,dc=it
-                       #Require ldap-user xraver lalaura matteo
-               </Location>
-
-               ProxyPreserveHost On
-
-               ProxyPass / http://webssh.giorgioravera.it:8888/
-               ProxyPassReverse / http://webssh.giorgioravera.it:8888/
-
-               #SSLProxyEngine on
-               #ProxyPass / https://webssh.giorgioravera.it/
-               #ProxyPassReverse / https://webssh.giorgioravera.it/
-
-                RewriteEngine On
-                RewriteCond %{HTTP:upgrade} websocket [NC]
-                RewriteRule /(.*) ws://webssh.giorgioravera.it:8888/$1 [L,P]
-                #RewriteRule /(.*) wss://webssh.giorgioravera.it/$1 [L,P]
+               SSLProxyEngine on
+               ProxyPass / https://webssh.giorgioravera.it/
+               ProxyPassReverse / https://webssh.giorgioravera.it/
+               ProxyPass / wss://webssh.giorgioravera.it/
+               ProxyPassReverse / wss://webssh.giorgioravera.it/
+
+               RewriteEngine on
+               RewriteCond %{HTTP:Upgrade} =websocket [NC]
+               RewriteRule /(.*) wss://webssh.giorgioravera.it/$1 [P,L]
 
                # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
                # error, crit, alert, emerg.
index 7fc6c76be940a0d328bba82ba0ea30b88f6f27bc..e1034fe431cbafe5bbe7caff10388f81e267c9a0 100644 (file)
@@ -13,6 +13,7 @@
                <Directory /var/www/www.giorgioravera.it/htdocs>
                        Options FollowSymlinks
                        AllowOverride All
+                       Require all granted
                </Directory>
                ScriptAlias /cgi-bin /var/www/www.giorgioravera.it/cgi-bin
 
                # modules, e.g.
                #LogLevel info ssl:warn
 
-               ErrorLog ${APACHE_LOG_DIR}/error.log
-               ErrorLog /var/www/www.giorgioravera.it/log/error.log
-               CustomLog ${APACHE_LOG_DIR}/access.log combined
-               CustomLog /var/www/www.giorgioravera.it/log/access.log combined
+               ErrorLog ${APACHE_LOG_DIR}/error_www.log
+               CustomLog ${APACHE_LOG_DIR}/access_www.log combined
 
                # For most configuration files from conf-available/, which are
                # enabled or disabled at a global level, it is possible to