On 22 December 2010 06:11, Todd Wilson <twil...@csufresno.edu> wrote: > The documentation contains some information on the interaction of the > mod_wsgi directives and the Apache directives, but, not being terribly > familiar with Apache configuration, I still have a couple of > questions. I'm trying to host a WSGI (actually Django) application on > a hosting provider, and only I have read access to the Apache > configuration file and the ability to add (approved) directives to the > end of it, via an included file. The existing configuration file is > mainly for PHP and mod_perl applications and is WSGI-unaware. There > are <Directory> blocks for an htdocs directory inside my home > directory and a cgi-bin subdirectory, as well as some <Files> > directives for specific files (like .htaccess, .htpasswd, and some > other special files). If I add my WSGI directives at the end, via the > included file, how will they interact with the earlier part of the > configuration? Will they override the earlier <Directory> and <Files> > blocks, or will I have to do something specific to achieve this? Will > URLs ending in .php still be served through mod_php? Also, I wonder > whether I should use their htdocs directory to serve my media files, > or whether I would be better off creating a separate directory for > that. > > Thanks for any advice you can provide!
As long as WSGIScriptAlias is mounting at a sub url and not the root of the site, then there shouldn't be any conflict. It is when you want your WSGI application mounted at root of web site, but still have other stuff at sub URLs, eg., PHP files, that you may have a problem with the inability to add additional configuration into existing Directory blocks in configuration. At what URL were you intending to have Django application accessible as? Graham -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to modw...@googlegroups.com. To unsubscribe from this group, send email to modwsgi+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.