Hi Graham,

Thanks for replying so quickly.  I renamed the file as you asked and 
restarted Apache for good measure.  Same error.
The only reference to WSGIScriptAlias in httpd.conf is this single line:
WSGIScriptAlias /wsgi-scripts/ "C:/Program Files (x86)/Apache Software 
Foundation/Apache2.2/wsgi-scripts/"
so there is no reference to htdocs in any WSGIScriptAlias line.

Thanks,

Cameron

On Sunday, October 21, 2012 5:23:35 PM UTC-7, Graham Dumpleton wrote:
>
> Oh, and did WSGIScriptAlias ever reference htdocs? Are you sure you 
> restarted Apache after configuration changes? 
>
> Graham 
>
> On 22 October 2012 11:01, Graham Dumpleton 
> <[email protected]<javascript:>> 
> wrote: 
> > 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 
> > <[email protected]<javascript:>> 
> 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 [email protected]<javascript:>. 
>
> >> To unsubscribe from this group, send email to 
> >> [email protected] <javascript:>. 
> >> For more options, visit this group at 
> >> http://groups.google.com/group/modwsgi?hl=en. 
>

-- 
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/-/piNefbnjOgsJ.
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.

Reply via email to