--- /dev/null
+SSLEngine on
+SSLCertificateFile /etc/ssl/giorgioravera.it/fullchain.pem
+SSLCertificateKeyFile /etc/ssl/giorgioravera.it/privkey.pem
--- /dev/null
+<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>
+++ /dev/null
-<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>
--- /dev/null
+<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>