It seems I don't need it. However, I'm getting 403 forbidden from
trying to refresh the page, which I don't understand either. Earlier
I was getting the 403 error probably because I didn't add '/
handler.py' to the end of the filesystem path. The mixture of this
mistake and the refresh issue is what caused some confusion. This now
works fine without AddHandler.
<VirtualHost *:8080>
DocumentRoot "C:/web/wsgi"
ServerName localhost
ServerAlias server
WSGIScriptAlias /wsgi "C:/web/wsgi/handler.py"
<Directory "C:/web/wsgi">
#AddHandler wsgi-script .wsgi .py
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Beginner's mistake :/
On Nov 13, 10:01 pm, "Graham Dumpleton" <[EMAIL PROTECTED]>
wrote:
> Without seeing all the relevant bits of Apache configuration, ie., how
> you tried to set it up in the first place, hard to tell. Were you
> trying to use WSGIScriptAlias? How was it set and in what context,
> ie., global configuration or inside VirtualHost etc etc.
>
> Graham
>
> 2008/11/14 Adam Yee <[EMAIL PROTECTED]>:
>
>
>
>
>
> > For some reason, I needed to add this directive,
>
> > AddHandler wsgi-script .wsgi
>
> > in order to get my hello world working.
>
> > Can anyone clarify why this was needed?
>
> > On Nov 10, 12:20 pm, gert <[EMAIL PROTECTED]> wrote:
> >> On Nov 10, 3:55 am, kaos <[EMAIL PROTECTED]> wrote:
>
> >> > Thanks for your help but I've got it running now,
>
> >> > I should have just opted for the VirtualHost option in the first
> >> > place, it works like a charm
>
> >> > <VirtualHost *:80>
>
> >> > ServerName localhost
> >> > ServerAlias localhost
> >> > ServerAdmin [EMAIL PROTECTED]
>
> >> > DocumentRoot "c:/wsgi"
>
> >> > WSGIScriptAlias / "c:/wsgi/handler.py"
>
> >> > <Directory "c:/wsgi">
> >> > Order allow,deny
> >> > Allow from all
> >> > </Directory>
>
> >> > Alias /robots.txt "c:/htdocs/robots.txt"
> >> > Alias /index.html "c:/htdocs/index.html"
>
> >> > Alias /images/ "c:/htdocs/images/"
>
> >> > </VirtualHost>
>
> >> > Am I doing it right?
>
> >> yep- Hide quoted text -
>
> >> - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---