View Single Post
  #4  
Old 22nd May 2009, 19:25
stefanos stefanos is offline
Junior Member
 
Join Date: Nov 2008
Posts: 29
Thanks: 6
Thanked 1 Time in 1 Post
Default

Well I did it like this...{just got this from my history file}..

apt-get install apache2
a2enmod proxy
a2enmod proxy_http
/etc/init.d/apache2 force-reload

a2enmod proxy_connect
a2enmod ssl
/etc/init.d/apache2 force-reload

###Create vhost file in /etc/apache2/sites-available/domain.com.vhost as follows

<VirtualHost *:80>
ServerName www.domain.com

ProxyRequests Off

<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyPass / http://www.domain.com/
ProxyPassReverse / http://www.domain.com/
</VirtualHost>

a2ensite domain.com.vhost
/etc/init.d/apache2 reload


I think you will also need to add into /etc/apache2/ports.conf to listen on the ports you want.

My HTTP works fine I have not tried with https yet.

So I will pass on where I got all my info from:
http://www.howtoforge.com/apache_rev...roxy_ispconfig
http://www.apachetutor.org/admin/reverseproxies
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html

Hope this helps.
Stephen
Reply With Quote