I'm having some trouble understanding how to set up web.py with cherokee 0.5. (Cherokee 0.6 has url rewrite but a Windows build it's not available yet)
With the code.py and cherokee.conf below, for url http://localhost/abcd, I get 404, but the code.py prints "GET /abcd" in the console. I suppose this means code.py has got the whole URL "/abcd" but why does it return 404? For URL http://localhost/a/abcd, the code.py console prints "GET /a/ abcd", but the output is "Hello, abcd!". So it seems that code.py eats the first part of the URL when running in scgi mode. When running as a stand-alone web server, /abcd works fine. Is this a web.py bug? I remember seeing a similar situation with lighttpd but the problem was hidden by using url rewrite rules. (I could be wrong here.) ---------------- cut ---------------- import web urls = ( '/(.*)', 'hello' ) class hello: def GET(self, name): print 'Hello,', name + '!' if __name__ == "__main__": web.run(urls, globals()) ---------------- cut ------------ Cherokee.conf ------------------ cut ------------------ Port 80 DocumentRoot "C:\Internet\Cherokee\www\" DirectoryIndex index.html Directory / { Handler scgi { Server localhost:8080 { Interpreter "C:\t\code.py 8080 scgi" } } } Directory /images { Handler file } ----------------- cut ------------------ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
