httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Terbush <ra...@zyzzyva.com>
Subject [PATCH] Include directive
Date Mon, 18 Aug 1997 05:18:28 GMT

Here is a tiny patch to add an Include directive. Obviously minus 
the previous directory recursion goo.

Index: http_core.c
===================================================================
RCS file: /export/home/cvs/apachen/src/core/http_core.c,v
retrieving revision 1.109
diff -u -r1.109 http_core.c
--- http_core.c	1997/08/06 20:21:24	1.109
+++ http_core.c	1997/08/18 05:13:54
@@ -1325,6 +1325,16 @@
     return NULL;
 }
 
+const char *include_config (cmd_parms *cmd, void *dummy, char *name)
+{
+    name = server_root_relative(cmd->pool, name);
+    
+    process_resource_config(cmd->server, name, cmd->pool, cmd->temp_pool);
+
+    return NULL;
+}
+
+
 /* Note --- ErrorDocument will now work from .htaccess files.  
  * The AllowOverride of Fileinfo allows webmasters to turn it off
  */
@@ -1450,6 +1460,7 @@
 { "ExcessRequestsPerChild", set_excess_requests, NULL, RSRC_CONF, TAKE1, "Maximum number
of requests a particular child serves after it is ready to die." },
 { "ListenBacklog", set_listenbacklog, NULL, RSRC_CONF, TAKE1, "maximum length of the queue
of pending connections, as used by listen(2)" },
 { "CoreDumpDirectory", set_coredumpdir, NULL, RSRC_CONF, TAKE1, "The location of the directory
Apache changes to before dumping core" },
+{ "Include", include_config, NULL, RSRC_CONF, TAKE1, "config file to be included" },
 { NULL },
 };
 



Mime
View raw message