Benutzer-Werkzeuge

Webseiten-Werkzeuge


  • Deutsch (German)
  • English
  • Français (French)
de.bkp:technische-dokumentationen:installationsanleitungen:reverse_proxy_-_ubuntu_apache2
Version Status Datum Author URL
0.1 Erster Entwurf 10.09.2020 Aaron Gensetter

Installation Reverse Proxy

1. Ubuntu Server Installieren

2. Installation

$ apt update
$ apt upgrade
$ apt install apache2
$ sudo snap install --classic certbot
$ a2dissite 000-default.conf
$ systemctl reload apache2
$ sudo a2enmod proxy
$ sudo a2enmod proxy_http
$ sudo a2enmod proxy_ajp
$ sudo a2enmod proxy_balancer
$ sudo a2enmod proxy_connect
$ sudo a2enmod proxy_html

Konfiguration

$ nano /etc/apache2/sites-available/website.com.conf
<VirtualHost *:80>
      ServerName **NAME**
      ServerAdmin **ADMINMAIL**
      ErrorLog ${APACHE_LOG_DIR}/error.log
      CustomLog ${APACHE_LOG_DIR}/access.log combined

      ProxyRequests Off
      <Proxy *>
        Order deny,allow
        Allow from all
      </Proxy>
        
      ProxyPass / http://**I.P.AD.DR**/
      ProxyPassReverse / http://**I.P.AD.DR**/

      <Location />
        Order allow,deny
        Allow from all
      </Location>
</VirtualHost>
$ a2ensite website.com.conf
$ systemctl reload apache2
$ certbot --apache
  (einfach mit der angezeigten nummer dasjenige auswählen das gebraucht wird)
  

QUELLEN

https://certbot.eff.org/lets-encrypt/ubuntufocal-apache

de.bkp/technische-dokumentationen/installationsanleitungen/reverse_proxy_-_ubuntu_apache2.txt · Zuletzt geändert: 2020/09/10 11:48 von 127.0.0.1