oh thanks a lot. that's what i want and didn't even need mod_rewrite. just wondering is there anyway to make mod_rewrite work with mod_wsgi? i guess i may need it later. mod_wsgi's WSGIScriptAlias seems doesn't work after mod_rewrite
-vince On Jan 22, 10:08 am, Graham Dumpleton <[email protected]> wrote: > 2009/1/22 vince <[email protected]>: > > > > > > > in short > > > for the apache conf > > WSGIScriptAlias / /var/www/devel/testwsgi.py > > >http://localhost/abc/def > > would become GET /abc/def inside testwsgi.py > > > and with > > WSGIScriptAlias /test /var/www/devel/testwsgi.py > > >http://localhost/test/abc/def > > would become GET /abc/def inside testwsgi.py > > > i actually want GET /test/abc/def/ in testwsgi.py > > with apache.conf > > WSGIScriptAlias /test /var/www/devel/testwsgi.py > > > so what i can think of is rewrite the url > > fromhttp://localhost/test/abc/deftohttp://localhost/test/test/abc/def > > or change the path_info or whatever i can determine the original URL > > > it's just after mod_rewrite the WSGIScriptAlias doesn't work that's > > why i am trying to figure out if i can just modifiy path_info or > > something else. > > Look at value of SCRIPT_NAME. > > Read: > > http://www.python.org/dev/peps/pep-0333/#url-reconstruction > > Graham --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "modwsgi" 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/modwsgi?hl=en -~----------~----~----~----~------~----~------~--~---
