]> git.giorgioravera.it Git - apache.git/commitdiff
Added Firewall site (not enabled)
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Mon, 6 Jun 2022 09:50:58 +0000 (11:50 +0200)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Mon, 6 Jun 2022 09:50:58 +0000 (11:50 +0200)
sites-available/firewall.giorgioravera.it.conf [new file with mode: 0644]

diff --git a/sites-available/firewall.giorgioravera.it.conf b/sites-available/firewall.giorgioravera.it.conf
new file mode 100644 (file)
index 0000000..2029ee9
--- /dev/null
@@ -0,0 +1,32 @@
+<VirtualHost *:80>
+       ServerName firewall.giorgioravera.it
+       ServerAdmin giorgio@giorgioravera.it
+       Redirect permanent / https://firewall.giorgioravera.it
+</VirtualHost>
+
+<IfModule mod_ssl.c>
+       <VirtualHost *:443>
+               ServerName firewall.giorgioravera.it
+               ServerAdmin giorgio@giorgioravera.it
+
+               SSLProxyEngine on
+               ProxyPass / https://firewall.giorgioravera.it/
+               ProxyPassReverse / https://firewall.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
+
+               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>