Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So I have 2 Virtual hosts on my server Configured as follows :

<VirtualHost *:80>
DocumentRoot /home/webmaster/www/PP

# Other directives here

<VirtualHost *:80> 
  ProxyPreserveHost On
  ProxyRequests Off
  ProxyPass / http://localhost:8001/
  ProxyPassReverse / http://localhost:8001/

*Are in separate files in /ete/apache2/sites-available linked to in sites-enabled

The problem is when a client visits they get redirected to

share|improve this question
Is there a particular reason why you are trying to proxy to a different port on the same server? That's not really necessary. All you need is to have DocumentRoot directives for the two virtual hosts pointing to the two (different) locations where the files for the two (different) sites are stored. – Gord Thompson Mar 17 '13 at 7:50
A instance of Liquid Feedback is running on port 8001, need to proxy it there. – BMC Mar 17 '13 at 8:00
Your site is down. After you get your site back up, post the rest of your Apache configuration. – Michael Hampton Mar 17 '13 at 10:36
its a local server, not open to internet – BMC Mar 17 '13 at 11:34

You can many solution for solve it:

  • using iptables
  • using /etc/hosts
  • using virtualhost according to ip (defining alias ethernet eth:1 eth:2 )
share|improve this answer
what should i do, – BMC Mar 17 '13 at 11:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.