You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Doug MacEachern <do...@covalent.net> on 2000/12/22 07:29:43 UTC

Re: Why double requests?

On Wed, 11 Oct 2000, Bill Moseley wrote:

...
> Here's the request:
> -------------------
> GET /test/abc/123 http/1.0
> 
> HTTP/1.1 200 OK
> Date: Wed, 11 Oct 2000 17:17:16 GMT
> Server: Apache/1.3.12 (Unix) mod_perl/1.24
> Connection: close
> Content-Type: text/plain
> 
> hello
> 
> Here's the error_log
> --------------------
> [Wed Oct 11 10:17:16 2000] [error] initial:/test/abc/123
> [Wed Oct 11 10:17:16 2000] [error] not initial:/abc/123
> [Wed Oct 11 10:17:16 2000] [error] [client 192.168.0.98] client denied by
> server configuration: /usr/local/apache/htdocs/abc
> 
> Why the second request with the extra path?

because in this case you have path_info data, when %ENV is populated,
ap_add_cgi_vars() calls ap_sub_req_lookup_uri() to resolve
PATH_TRANSLATED.

notice you won't see it with:
PerlSetupEnv Off