Siehe auch unter Apache Webserver
## install apache2 ##
apt-get update
apt-get install apache2 -y
## enable moduls ##
a2enmod proxy
a2enmod proxy_http
a2enmod proxy_ajp
a2enmod rewrite
a2enmod deflate
a2enmod headers
a2enmod proxy_balancer
a2enmod proxy_connect
a2enmod proxy_html
service apache2 restart
## create config for 1st client ##
nano /etc/apache2/sites-enabled/server1.conf
<VirtualHost *:80>
ServerName subdomain11.yourdomain.com
ProxyPreserveHost On
DocumentRoot /var/www/html
ProxyPass /.well-known !
ProxyPass / http://10.1.1.11:80/
ProxyPassReverse / http://10.1.1.11:80/
</VirtualHost>
## restart apache server ##
service apache2 restart
## install Let's Encrypt Certbot ##
apt-get install python-certbot-apache
## create certificates ##
certbot --apache
#install crontab
crontab -e
0 1 * * * /usr/bin/certbot renew & > /dev/nul
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName subdomain1.domain.de
SSLProxyEngine on
ProxyPreserveHost On
DocumentRoot /var/www/html
ProxyPass /.well-known !
ProxyPass / https://192.168.20.45/
ProxyPassReverse / https://192.168.20.45/
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/subdomain1.domain.de/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/subdomain1.domain.de/privkey.pem
</VirtualHost>
</IfModule>
#nur bei bedarf SSLEngine On
SSLProxyEngine On
ProxyRequests On
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
#SSL weiteleitung ProxyPass /.well-known !
ProxyPass /stats !
ProxyPass / https://192.168.20.12/
ProxyPassReverse / https://192.168.20.12/
SSLProxyEngine On
ProxyRequests On
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /.well-known !
ProxyPass /stats !
ProxyPass /ws ws://192.168.20.58/ws
RequestHeader set X_FORWARDED_PROTO 'https'
RequestHeader set X-Forwarded-Ssl on
ProxyPass / http://192.168.20.58/
ProxyPassReverse / http://192.168.20.58/