Configure Reverse Proxy With Apache2 on Debian 9

Load modules
#a2enmod proxy
#a2enmod proxy_http

Virtualhost Configuration

#cd /etc/apache2/sites-available/
#vi myproxyweb

<VirtualHost *:80>
        ServerName mywebsite.id
        ProxyPass       /       http://192.168.1.1:8080/
        ProxyPassReverse   /    http://192.168.1.1:8080/
</VirtualHost>

Disable Default

#a2dissite default

Enable new Virtualhost

#a2ensite myproxyweb

Restart Apache

#systemctl restart apache2

OK!

Komentar

Postingan populer dari blog ini

Pembahasan IT Network Systems Administration Module A DNS (Forward Zone, Reverse Zone, CNAME, MX, Split View)

Cara restart / stop windows service (services.msc) dengan bat / cmd

How to convert VMDK to OVA