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
<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
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
HTTP_ACCEPT_LANGUAGE
HTTP_CONNECTION
HTTP_HOST
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
REDIRECT_URI
REMOTE_ADDR
REMOTE_PORT
REQUEST_METHOD
REQUEST_URI