2009/6/30 Adam Yee <[email protected]>: > > Hey guys, > > Using Fedora 10, Apache 2.2.11, mod_wsgi 2.5, Python 2.5.2 > > Trying to work out the quick configuration, here is my httpd.conf > > # /etc/httpd/conf/httpd.conf > WSGISocketPrefix run/wsgi > > <VirtualHost *:80> > > WSGIDaemonProcess adam-home user=adam group=adam processes=2 > threads=15 > WSGIProcessGroup adam-home > > WSGIScriptAlias /test /home/adam/modwsgitest/test.wsgi > > <Directory /home/adam/modwsgitest> > Order allow,deny > Allow from all > </Directory> > > </VirtualHost> > > > # error_log > [Tue Jun 30 00:45:00 2009] [notice] SELinux policy enabled; httpd > running as context unconfined_u:system_r:httpd_t:s0 > [Tue Jun 30 00:45:00 2009] [notice] suEXEC mechanism enabled > (wrapper: /usr/sbin/suexec) > [Tue Jun 30 00:45:00 2009] [notice] Digest: generating secret for > digest authentication ... > [Tue Jun 30 00:45:00 2009] [notice] Digest: done > [Tue Jun 30 00:45:00 2009] [info] APR LDAP: Built with OpenLDAP LDAP > SDK > [Tue Jun 30 00:45:00 2009] [info] LDAP: SSL support available > [Tue Jun 30 00:45:00 2009] [info] mod_wsgi (pid=16919): Initializing > Python. > [Tue Jun 30 00:45:00 2009] [info] mod_wsgi (pid=16921): Starting > process 'adam-home' with uid=500, gid=500 and threads=15. > [Tue Jun 30 00:45:00 2009] [info] mod_wsgi (pid=16922): Starting > process 'adam-home' with uid=500, gid=500 and threads=15. > [Tue Jun 30 00:45:00 2009] [info] mod_wsgi (pid=16943): Attach > interpreter ''. > [Tue Jun 30 00:45:00 2009] [info] mod_wsgi (pid=16944): Attach > interpreter ''. > [Tue Jun 30 00:45:00 2009] [info] mod_wsgi (pid=16959): Attach > interpreter ''. > [Tue Jun 30 00:45:00 2009] [info] mod_wsgi (pid=16960): Attach > interpreter ''. > [Tue Jun 30 00:45:00 2009] [info] mod_wsgi (pid=16961): Attach > interpreter ''. > [Tue Jun 30 00:45:00 2009] [info] mod_wsgi (pid=16962): Attach > interpreter ''. > [Tue Jun 30 00:45:00 2009] [info] mod_wsgi (pid=16963): Attach > interpreter ''. > [Tue Jun 30 00:45:00 2009] [notice] Apache/2.2.11 (Unix) DAV/2 > mod_wsgi/2.5 Python/2.5.2 configured -- resuming normal operations > [Tue Jun 30 00:45:00 2009] [info] Server built: Mar 6 2009 09:12:25 > [Tue Jun 30 00:45:00 2009] [info] mod_wsgi (pid=16964): Attach > interpreter ''. > [Tue Jun 30 00:45:13 2009] [error] [client 127.0.0.1] (13)Permission > denied: access to /test denied > > Is Apache looking to Document Root for /test? > > I'm new to Red Hat and the Apache configuration files were setup > somewhat different than a Debian distro. Why are there two different > httpd.conf files? The one used by default is located at /etc/httpd/ > conf/ and the other /usr/local/apache2/conf/ which I don't know what > it does. I added LoadModule wsgi_module modules/mod_wsgi.so to /etc/ > httpd/conf/httpd.conf, and I haven't added anything else than what you > see. > > When requesting /test in browser, I get the standard 403 with "Apache/ > 2.2.11 (Fedora) Server at 127.0.0.1 Port 80" under the <hr />. > However, I'm used to seeing mod_wsgi somewhere in that. > I can't figure out why mod_wsgi isn't handling my test.wsgi
If that is all you have for the configuration, then the VirtualHost is probably redundant. This is because you don't have ServerName and so host based URLs wouldn't map to the VirtualHost anyway. The only it would map to that is if that was the only VirtualHost in the configuration and as such was being treated as the default virtual host for the server when host based names don't match to any actual VirtualHost. Anyway, for starters, I would suggest you disable SELinux altogether as if that is not configured properly, likely that nothing will work. So, do that and see what happens. Or at least confirm when it is disabled or not. It is mentioned in logs though. Graham --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en -~----------~----~----~----~------~----~------~--~---
