httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Salvador Ortiz Garcia <...@msg.com.mx>
Subject PATCH: Allow /my/handled/uri in DirectoryIndex for 1.3
Date Fri, 04 Jun 1999 19:30:48 GMT

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



Mime
View raw message