Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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,

203.1.1.1/app1/ and 203.1.1.1/app2/

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

1 Answer 1

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
 </Directory>

 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

 
discard

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.