I have a problem whereby webpy ends up with the browser path when processing urls, rather than the one from a lighttpd rewrite. Whether this problem lies with lighttpd or webpy I do not know.
I've setup lighttpd (0.28) with webpy (0.34) and I have a rewrite rule like *url.rewrite-once = (* * "^/(.*)$" => "/main.py/"* *)* in lighttpd.conf. However if I then goto http://192.168.1.73/dddd in the browser then I get a webpy message about *<type 'exceptions.TypeError'> at /dddd* because I don't have that in my urls list. The problem is that webpy is seeing *dddd* in the url, when I'd expect it to only see /, because my rewrite only goes to /main.py NOT /main.py/$0 Is this a known bug, or have a misconfigured things or something else? I've seen the same under ubuntu 10.04 and 12.04 with the standard package installs Thanks in advance for any help, here is some information from the webpy debug: Under meta it says: *fullpath u'/dddd'* and other information is: *DOCUMENT_ROOT* *'/usr/lib/icp/WebApp/src/'* * GATEWAY_INTERFACE* *'CGI/1.1'* * HTTP_ACCEPT* *'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'* * HTTP_ACCEPT_CHARSET* *'ISO-8859-1,utf-8;q=0.7,*;q=0.7'* * HTTP_ACCEPT_ENCODING* *'gzip, deflate'* * HTTP_ACCEPT_LANGUAGE* *'en-us,en;q=0.5'* * HTTP_CONNECTION* *'keep-alive'* * HTTP_HOST* *'192.168.1.73'* * HTTP_USER_AGENT* *'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:8.0.1) Gecko/20100101 Firefox/8.0.1'* * PATH_INFO* *'/'* * PATH_TRANSLATED* *'/usr/lib/icp/WebApp/src//'* * QUERY_STRING* *''* * REDIRECT_STATUS* *'200'* * REDIRECT_URI* *'/main.py/'* * REMOTE_ADDR* *'192.168.1.67'* * REMOTE_PORT* *'51369'* * REQUEST_METHOD* *'GET'* * REQUEST_URI* *'/dddd'* -- You received this message because you are subscribed to the Google Groups "web.py" group. To view this discussion on the web visit https://groups.google.com/d/msg/webpy/-/nXpFuN_Gc7UJ. 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.
