apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitri Tikhonov <dmi...@netilla.com>
Subject Re: Proxying DirectoryIndex files.
Date Wed, 07 Jul 2004 23:04:17 GMT
On Thu, Jul 08, 2004 at 12:23:52AM +0200, Andr? Malo wrote:
> * Graham Leggett <minfrin@sharp.fm> wrote:
> 
> > Dmitri Tikhonov wrote:
> > 
> > > Sure, check out bug 29961; you are CC'd:
> > > 
> > >   http://nagoya.apache.org/bugzilla/show_bug.cgi?id=29961
> > 
> > According to http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15112 
> > this problem is fixed in v2.1 - can you try that version and confirm if 
> > it's fixed? If so, then we can organise it gets into v2.0
> 
> Or just the mod_dir patch provided in the report as link.

I applied the patch to a freshly downloaded apache 2.0.50, but something
does not add up:

  [Wed Jul 07 18:52:45 2004] [debug] proxy_http.c(66): proxy: HTTP: canonicalising URL //localhost:8088/index.cgi
  [Wed Jul 07 18:52:45 2004] [error] [client 127.0.0.1] File does not exist: proxy:http://localhost:8088/index.cgi

However, changing from

  ap_internal_fast_redirect(rr, r);

to

  ap_internal_redirect(rr->uri, r);

made it work, but not without a glitch (index.cgi is a redirector, and
thus returns no body): an error body is appended to the document and error
is logged:

  [Wed Jul 07 18:56:44 2004] [error] [client 127.0.0.1] Attempt to serve directory: /var/www/

This error is generated by default_handler() in server/core.c; I am not
sure how the request gets there, as it is handled by mod_proxy.

  - Dmitri.


Mime
View raw message