Still looping around my tail....

Platform details:
Windows XP, Apache2.2, mod_wsgi, python25

[code.py]
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()))



[httpd.conf]
(I added the following:)

LoadModule wsgi_module modules/mod_wsgi.so

<Files code.py>
    SetHandler wsgi-script
</Files>

When typing: 'http://localhost/code.py'  I get the code displayed on
the browser window
When typing 'http://localhost/code.py/'   (tailing slash)  I get Not
Found Error
@ log I can see a line that reads: 'File does not exist: C:/Program
Files/Apache Software Foundation/Apache2.2/htdocs/code.py/' while that
very file exist.

What am I missing?


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to