Passenger_wsgi.py given precedence over DirectoryIndex?

Posted by Walkerneo on Server Fault See other posts from Server Fault or by Walkerneo
Published on 2012-09-09T06:26:43Z Indexed on 2012/09/09 9:39 UTC
Read the original article Hit count: 342

Filed under:
|
|

I was having an issue with my site today, where apache wasn't serving index.php by default.

I had moved passenger_wsgi.py to the directory above document root so that I could serve python files without having to use PassengerAppRoot in the .htaccess file. I wanted to do this because I set up a development sub-domain on the site, and I wanted to use a different passenger_wsgi for the two domains, but that meant having different .htaccess files for the different PassengerAppRoots.

Is there a way to have passenger_wsgi.py where it was and still let apache serve the index.phps?

edit: I'm sorry, I'm tired. I just realized that the way this probably works is that passenger_wsgi.py is handling the routing instead of apache.

© Server Fault or respective owner

Related posts about apache2

Related posts about python