Reverse Proxy konfigurieren mit SSL Verschlüsselung via Let’s Encrypt – Einfache Beginner Anleitung

In diesem Video erkläre Ich Schritt-für-Schritt, wie man einen Reverse Proxy Server im Heimnetz konfiguriert und alle damit verbundenen Web-Anwendungen kostenlos SSL-Verschlüsselt mit Let’s Encrypt.

Raspberry Pi als Proxy Server: https://amzn.to/2DbR0Sk
Intel NUC als Proxy Server: https://amzn.to/34cqqEx

Videoreihe zum Thema Home Server & Proxmox: https://cc.apfelcast.com/homeserver
Mehr zum Thema Nextcloud: https://cc.apfelcast.com/nc

 

 

#### create Apache Reverse Proxy Server Ubuntu ####

## 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>

## create config for 2nd client ##
nano /etc/apache2/sites-enabled/server2.conf
<VirtualHost *:80>
 ServerName subdomain12.yourdomain.com
 ProxyPreserveHost On 
 DocumentRoot /var/www/html
 ProxyPass /.well-known !
 ProxyPass / http://10.1.1.12:80/
 ProxyPassReverse / http://10.1.1.12:80/
</VirtualHost>

## restart apache server ##
service apache2 restart

## install Let's Encrypt Certbot ##
apt-get install python-certbot-apache

## create certificates ##
certbot --apache

#--> certificate only lasts 90 days

#install crontab
crontab -e

0 1 * * * /usr/bin/certbot renew & > /dev/nul

 

apfelcast Support

Du benötigst Unterstützung bei deinem Projekt oder hast Fragen zur Umsetzung?
Dann melde ich gern bei uns!

[button link=“https://apfelcast.com/kontakt“ type=“big“ class=“ custom-button“] Kontaktieren[/button]

apfelcast Support

Du benötigst Unterstützung bei deinem Projekt oder hast Fragen zur Umsetzung?
Dann melde ich gern bei uns!

Ähnliche Beiträge