Linux

Reverse Proxy

Nyalakan module yang diperlukan pada apache.

sudo a2enmod proxy 
sudo a2enmod proxy_http
sudo a2enmod proxy_balancer
sudo a2enmod lbmethod_byrequests

Restart apache server.

sudo systemctl restart apache2 

Buat virtulhost.

<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName
  ProxyPreserveHost On ProxyPass / http://192.168.0.2:80/
ProxyPassReverse / http://192.168.0.2:80/
</VirtualHost>

Restart apache.

sudo systemctl restart apache2

Leave a Reply

Your email address will not be published. Required fields are marked *