Weiterleitung an eine andere lokale IP (Apache)

Aus Tutorials
Zur Navigation springen Zur Suche springen

Noch in Bearbeitung


Weiterleitender Server

Zielserver

/etc/apache2/ports.conf

sudo vi /etc/apache2/ports.conf
Listen 80
Listen 8081    

/etc/apache2/sites-available/tutorials.conf

cd /etc/apache2/sites-available
sudo vi tutorials.conf
<VirtualHost *:8081>
  ServerName <lokale IP>
  DocumentRoot /mnt/synology/web2/www/tutorials

  <Directory /mnt/synology/web2/www/tutorials>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
  </Directory>

  ErrorLog ${APACHE_LOG_DIR}/<domain-name>-error.log
  CustomLog ${APACHE_LOG_DIR}/<domain-name>-access.log combined
</VirtualHost>


Zurück zu Apache HTTP