On 24 March 2010 11:22, Deron Meranda <[email protected]> wrote: >> But in a virtual host, use: >> RewriteCond %{DIRECTORY_ROOT}/%{REQUEST_URI} !-f > > Oops, I was typing too fast. Meant to say: > > RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f > > > (Also the "/" separator may be unnecessary, but it makes me > feel safer until I prove to myself that it's never needed.)
Am not sure REQUEST_URI will always work in that situation as it isn't decoded nor are repeating slashes removed. PATH_INFO: '/sa/asdf/as/df/asdf/ ' PATH_TRANSLATED: '/Users/grahamd/Testing/tests/sa/asdf/as/df/asdf/ ' REQUEST_URI: '/echo.wsgi/sa//asdf/as/df/asdf///%20' SCRIPT_FILENAME: '/Users/grahamd/Testing/tests/echo.wsgi' SCRIPT_NAME: '/echo.wsgi' 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.
