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

I want to host two web apps using a same Apache server, and with IP address in the URL. Two apps are differentiated by their URLs. For example, and

I'm using mod_wsgi with Apache. However, I'm able to access only one of the apps. How should the Virtual hosts be written in my httpd.conf file?

Thank you!

share|improve this question
can't you use dns names instead of accessing via ip address ? – topdog Nov 2 '10 at 15:03
up vote 0 down vote accepted

Follow the fine manual, adding a WSGIScriptAlias for each app.

 <Directory "/usr/local/wsgi/scripts">
 Order allow,deny 
 Allow from all

 WSGIScriptAlias /app1 /usr/local/wsgi/scripts/app1.wsgi
 WSGIScriptAlias /app2 /usr/local/wsgi/scripts/app2.wsgi
share|improve this answer
Thanks! Your suggestion finally helped me to solve this! :) – Barun Jan 17 '11 at 5:39

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.