Should my wsgi directory be completely outside of www?
DocumentRoot /usr/local/www/
WSGIScriptAlias / /usr/local/wsgi/
Something like that, yeah?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You don’t need a DocumentRoot when using a
WSGIScriptAlias /.The answer to your actual question: it’s probably best, yeah. I usually set the DocumentRoot to a 404 folder (folder with an index.html that shows a 404 page) and the WSGIScriptAlias to the actual script. Whether the 404 folder is actually useful? No idea, I’ve never seen it get hit. However, it’s a good idea to keep them separated to avoid direct access to the contents of your code… which is something I have seen happen.