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