Try using a .wsgi prefix instead of .py for wgsi_test.py.
The presence of rules for .py extension for CGI or FASTCGI can conflict.
Graham
On 22 October 2012 10:46, Cameron Matthews <
cameronh...@gmail.com> wrote:
> Hi,
>
> I have a vanilla install of Apache 2.2.22 and Python 2.7.3 and the
> appropriate module (for Windows). I'm trying to get the Hello World Python
> script to work.
> I have the following lines in my httpd.conf:
>
> LoadModule wsgi_module modules/mod_wsgi.so
> [...]
> DocumentRoot "C:/Program Files (x86)/Apache Software
> Foundation/Apache2.2/htdocs"
> [...]
> WSGIScriptAlias /wsgi-scripts/ "C:/Program Files (x86)/Apache Software
> Foundation/Apache2.2/wsgi-scripts/"
> <Directory "C:/Program Files (x86)/Apache Software
> Foundation/Apache2.2/wsgi-scripts">
> Order allow,deny
> Allow from all
> </Directory>
>
> When I try to hit a file in /wsgi-scripts/called wsgi_test.py, I get the
> following in the Apache log:
>
> [Sun Oct 21 12:10:12 2012] [error] [client 127.0.0.1] File does not exist:
> C:/Program Files (x86)/Apache Software
> Foundation/Apache2.2/htdocs/wsgi-scripts
>
> WSGIScriptAlias appears to be setting DocumentRoot as the prefix for the URL
> rather than mapping directly to the supplied directory.
> No other errors are listed from the bootstrap of Apache until this.
>
> Any ideas?
>
> Thanks!
>
> Cameron
>
> --
> You received this message because you are subscribed to the Google Groups
> "modwsgi" group.
> To view this discussion on the web visit
>
https://groups.google.com/d/msg/modwsgi/-/QjfngUnDf1UJ.
> To post to this group, send email to
mod...@googlegroups.com.
> To unsubscribe from this group, send email to
>
modwsgi+u...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/modwsgi?hl=en.