httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adriano Nagel" <...@safira.com>
Subject Re: mod_dir doesn't play nicely with mod_cache, mod_include
Date Fri, 20 Jun 2008 10:25:46 GMT
On Wed, Jun 18, 2008 at 6:30 PM, Ruediger Pluem <rpluem@apache.org> wrote:
> Thats correct. This doesn't work. I guess the following patch might fix
> this:
>
> Index: modules/mappers/mod_dir.c
> ===================================================================
> --- modules/mappers/mod_dir.c   (Revision 669255)
> +++ modules/mappers/mod_dir.c   (Arbeitskopie)
> @@ -180,7 +180,7 @@
>             name_ptr = apr_pstrcat(r->pool, name_ptr, "?", r->args, NULL);
>         }
>
> -        rr = ap_sub_req_lookup_uri(name_ptr, r, NULL);
> +        rr = ap_sub_req_lookup_uri(name_ptr, r, r->output_filters);
>
>         /* The sub request lookup is very liberal, and the core
> map_to_storage
>          * handler will almost always result in HTTP_OK as /foo/index.html
>
> But since this might have remarkable side effects other should have a look
> on this.

Doesn't seem to fix the problem:

$ curl -I http://localhost/index.html
HTTP/1.1 200 OK
Date: Fri, 20 Jun 2008 10:21:55 GMT
Server: Apache/2.2.9 (Unix)
Last-Modified: Mon, 09 Jun 2008 13:16:13 GMT
ETag: "481a3-10c0-44f3b9d9fc140"
Accept-Ranges: bytes
Content-Length: 4288
Cache-Control: max-age=600
Expires: Fri, 20 Jun 2008 10:25:46 GMT
Age: 368
Content-Type: text/html


$ curl -I http://localhost/
HTTP/1.1 200 OK
Date: Fri, 20 Jun 2008 10:22:25 GMT
Server: Apache/2.2.9 (Unix)
Last-Modified: Mon, 09 Jun 2008 13:16:13 GMT
ETag: "481a3-10c0-44f3b9d9fc140"
Accept-Ranges: bytes
Content-Length: 4288
Cache-Control: max-age=600
Expires: Fri, 20 Jun 2008 10:32:25 GMT
Content-Type: text/html


Regards,

--
Adriano

Mime
View raw message