Thursday, June 16, 2011

Apache proxy server setup(Ubuntu 10+)

In your apache2 server you have the folder /etc/apache2/sites-available

To edit the default file you should change the file permission
The code will be
sudo chmod 777 /etc/apache2/sites-available/default

You need to add these two lines in the default file and the line should not be in the outside of

ProxyPass        /path
ProxyPassReverse /path

after that you should do enable the proxy and proxy_http. The command will be like that

sudo a2enmod proxy
sudo a2enmod proxy_http

Atlast, you should reload the apache server

 sudo /etc/init.d/apache2 reload

The paste the url in the browser :


It will redirect you in site

No comments: