On Jun 19, 8:39 pm, toasterfun <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have WSGI working perfectly on my server (mod_wsgi), and I'm having
> some issues.
How do you know you have it working perfectly? Have you got working a
simple hello world WSGI example first. Ie., one that doesn't involve
web.py?
> I installed web.py, and have tested "import web" in my /
> var/www directory.
>
> When I run the file "index.wsgi", I get a message "not found". That's
> it, no error messages in apache's logs (which usually say something
> when wsgi has an error).
>
> File:
> import web
>
> urls = (
> '/(.*)', 'hello'
> )
>
> class hello:
> def GET(self, name):
> i = web.input(times=1)
> if not name: name = 'world'
> for c in xrange(int(i.times)): print 'Hello,', name+'!'
>
> application = web.wsgifunc(web.webpyfunc(urls, globals()))
>
> Can someone help me out?
Follow instructions in:
http://code.google.com/p/modwsgi/wiki/DebuggingTechniques
and set:
LogLevel info
in Apache configuration, overridding its default of 'warn' as
necessary.
Do this and it should be obvious if WSGI script file is loaded as
Apache log files will tell you. If it doesn't show it being loaded,
problem in your Apache configuration, if it does show it being loaded,
possible issue with your web.py code.
Post what snippet of Apache configuration you use to enable mod_wsgi
for .wsgi extension in the directory where it is located and state
what URL you tried to use to access the application.
Graham
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---