Received: (from majordom@localhost) by hyperreal.org (8.8.5/8.8.5) id WAA13652; Sun, 17 Aug 1997 22:21:03 -0700 (PDT) Received: from sierra.zyzzyva.com (ppp0-sierra.zyzzyva.com [208.214.59.46]) by hyperreal.org (8.8.5/8.8.5) with ESMTP id WAA13635 for ; Sun, 17 Aug 1997 22:20:58 -0700 (PDT) Received: from sierra (localhost [127.0.0.1]) by sierra.zyzzyva.com (8.8.5/8.8.2) with ESMTP id AAA24289 for ; Mon, 18 Aug 1997 00:18:28 -0500 (CDT) Message-Id: <199708180518.AAA24289@sierra.zyzzyva.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: new-httpd@apache.org Subject: [PATCH] Include directive X-uri: http://www.zyzzyva.com/ Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 18 Aug 1997 00:18:28 -0500 From: Randy Terbush Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org 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 }, };