]> git.giorgioravera.it Git - apache.git/commitdiff
Moved some site to docker
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Tue, 17 Mar 2020 14:24:14 +0000 (15:24 +0100)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Tue, 17 Mar 2020 14:24:14 +0000 (15:24 +0100)
sites-available/cloud.giorgioravera.it.conf [new file with mode: 0644]
sites-available/docker.giorgioravera.it.conf [new file with mode: 0644]
sites-available/home.giorgioravera.it.conf
sites-available/traefik.giorgioravera.it.conf [new file with mode: 0644]
sites-available/xoa.giorgioravera.it.conf

diff --git a/sites-available/cloud.giorgioravera.it.conf b/sites-available/cloud.giorgioravera.it.conf
new file mode 100644 (file)
index 0000000..8f8a190
--- /dev/null
@@ -0,0 +1,40 @@
+<VirtualHost *:80>
+       ServerName cloud.giorgioravera.it
+       ServerAdmin giorgio@giorgioravera.it
+       RewriteEngine on
+       RewriteCond %{HTTPS} !=on
+       RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [NE,R,L]
+</VirtualHost>
+
+<IfModule mod_ssl.c>
+       <VirtualHost *:443>
+               ServerName cloud.giorgioravera.it
+               ServerAdmin giorgio@giorgioravera.it
+
+               ProxyPreserveHost On
+               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>
+
+# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
diff --git a/sites-available/docker.giorgioravera.it.conf b/sites-available/docker.giorgioravera.it.conf
new file mode 100644 (file)
index 0000000..cb3b31f
--- /dev/null
@@ -0,0 +1,35 @@
+<VirtualHost *:80>
+       ServerName docker.giorgioravera.it
+       ServerAdmin giorgio@giorgioravera.it
+       RewriteEngine on
+       RewriteCond %{HTTPS} !=on
+       RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [NE,R,L]
+</VirtualHost>
+
+<IfModule mod_ssl.c>
+       <VirtualHost *:443>
+               ServerName docker.giorgioravera.it
+               ServerAdmin giorgio@giorgioravera.it
+
+               ProxyPass / http://docker.giorgioravera.it/
+               ProxyPassReverse / http://docker.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>
+
+# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
index 1a1c487bb2658d5baa69af74ebf5ec7c4ee7339c..9169f8f4ba4d0afd2e996e1ad3c9f35ca5e408f8 100644 (file)
 
                ProxyPreserveHost On
                ProxyRequests off
-               ProxyPass /api/websocket ws://localhost:8123/api/websocket
-               ProxyPassReverse /api/websocket ws://localhost:8123/api/websocket
-               ProxyPass / http://localhost:8123/
-               ProxyPassReverse / http://localhost:8123/
+               ProxyPass /api/websocket ws://home.giorgioravera.it/api/websocket
+               ProxyPassReverse /api/websocket ws://home.giorgioravera.it/api/websocket
+               ProxyPass / http://home.giorgioravera.it/
+               ProxyPassReverse / http://home.giorgioravera.it/
 
                RewriteEngine on
                RewriteCond %{HTTP:Upgrade} =websocket [NC]
-               RewriteRule /(.*)  ws://localhost:8123/$1 [P,L]
+               RewriteRule /(.*)  ws://home.giorgioravera.it/$1 [P,L]
                RewriteCond %{HTTP:Upgrade} !=websocket [NC]
-               RewriteRule /(.*)  http://localhost:8123/$1 [P,L]
+               RewriteRule /(.*)  http://home.giorgioravera.it/$1 [P,L]
 
                # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
                # error, crit, alert, emerg.
diff --git a/sites-available/traefik.giorgioravera.it.conf b/sites-available/traefik.giorgioravera.it.conf
new file mode 100644 (file)
index 0000000..567e794
--- /dev/null
@@ -0,0 +1,36 @@
+<VirtualHost *:80>
+       ServerName traefik.giorgioravera.it
+       ServerAdmin giorgio@giorgioravera.it
+       RewriteEngine on
+       RewriteCond %{HTTPS} !=on
+       RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [NE,R,L]
+</VirtualHost>
+
+<IfModule mod_ssl.c>
+       <VirtualHost *:443>
+               ServerName traefik.giorgioravera.it
+               ServerAdmin giorgio@giorgioravera.it
+
+               ProxyPreserveHost On
+               ProxyPass / http://traefik.giorgioravera.it/
+               ProxyPassReverse / http://traefik.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>
+
+# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
index 9b05882ee7bc9f9a7c56d3904f0ef03041f30dfd..31b5986a90d9abc7174e6d8de61aba67b137f489 100644 (file)
@@ -12,7 +12,6 @@
                ServerAdmin giorgio@giorgioravera.it
 
                ProxyPreserveHost On
-               ProxyRequests off
                ProxyPass / http://xoa.giorgioravera.it/
                ProxyPassReverse / http://xoa.giorgioravera.it/