0

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!

Barun
  • 289
  • 1
  • 4
  • 13

1 Answers1

0

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