]> git.giorgioravera.it Git - apache.git/commitdiff
added proxmox and webssh sites
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Sun, 17 Apr 2022 17:34:43 +0000 (19:34 +0200)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Sun, 17 Apr 2022 17:34:43 +0000 (19:34 +0200)
sites-available/pve.giorgioravera.it.conf [new file with mode: 0644]
sites-available/webssh.giorgioravera.it.conf [new file with mode: 0644]

diff --git a/sites-available/pve.giorgioravera.it.conf b/sites-available/pve.giorgioravera.it.conf
new file mode 100644 (file)
index 0000000..0ae13de
--- /dev/null
@@ -0,0 +1,38 @@
+<VirtualHost *:80>
+       ServerName pve.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 pve.giorgioravera.it
+               ServerAdmin giorgio@giorgioravera.it
+
+               SSLProxyEngine on
+               ProxyPass / https://pve.giorgioravera.it:8006/
+               ProxyPassReverse / https://pve.giorgioravera.it:8006/
+
+               RewriteEngine On
+               RewriteCond %{HTTP:upgrade} websocket [NC]
+               RewriteRule /(.*) wss://pve.giorgioravera.it:8006/$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/webssh.giorgioravera.it.conf b/sites-available/webssh.giorgioravera.it.conf
new file mode 100644 (file)
index 0000000..e70fa2d
--- /dev/null
@@ -0,0 +1,57 @@
+<VirtualHost *:80>
+       ServerName webssh.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 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>
+
+               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]
+
+               # 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>