You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Salvador Ortiz Garcia <so...@msg.com.mx> on 1999/06/04 21:30:48 UTC

PATCH: Allow /my/handled/uri in DirectoryIndex for 1.3

Apache developers:

As documented DirectoryIndex can take any URI, but right now only
allows an URI that points to existing files.

The patch attached fix this to allow URIs with a handler defined.

Index: src/modules/standard/mod_dir.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/modules/standard/mod_dir.c,v
retrieving revision 1.55
diff -u -r1.55 mod_dir.c
--- mod_dir.c	1999/05/01 13:42:09	1.55
+++ mod_dir.c	1999/06/04 19:14:57
@@ -161,7 +161,8 @@
         char *name_ptr = *names_ptr;
         request_rec *rr = ap_sub_req_lookup_uri(name_ptr, r);
 
-        if (rr->status == HTTP_OK && S_ISREG(rr->finfo.st_mode)) {
+        if (rr->status == HTTP_OK 
+		&& (S_ISREG(rr->finfo.st_mode) || rr->handler)) {
             char *new_uri = ap_escape_uri(r->pool, rr->uri);
 
             if (rr->args != NULL)



Thanks for yor time.

Salvador Ortiz