httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@worldgate.com>
Subject Re: [PATCH] PR#449: allow -D in Configuration to override some things
Date Sun, 27 Apr 1997 21:30:05 GMT
We also need to allow the config file locations to be overridden.  Not
everyone wants *.conf in HTTPD_ROOT/conf/.  May be able to get by with
just allowing one to be overridden (haven't looked at the order of
parsing), but should do all three just to make it nice.

DEFAULT_PATH and SHELL_PATH should also be ifdefed.

On Sun, 27 Apr 1997, Dean Gaudet wrote:

> (Nothing to wait for.)
> 
> I actually submitted something like this before, but was convinced to
> change it to just HARD_SERVER_LIMIT.  This patch lets people -D a few
> things in Configuration without having to touch the code.  As Marc pointed
> out it's at least desirable to allow HTTPD_ROOT to be modified like this
> so that it's possible to build an httpd that can be run without any
> arguments.
> 
> Dean
> 
> Index: httpd.h
> ===================================================================
> RCS file: /export/home/cvs/apache/src/httpd.h,v
> retrieving revision 1.99
> diff -c -3 -r1.99 httpd.h
> *** httpd.h	1997/04/27 11:57:16	1.99
> --- httpd.h	1997/04/27 20:43:50
> ***************
> *** 65,90 ****
> --- 65,96 ----
>   /* Define this to be the default server home dir. Anything later in this
>    * file with a relative pathname will have this added.
>    */
> + #ifndef HTTPD_ROOT
>   #ifdef __EMX__
>   /* Set default for OS/2 file system */ 
>   #define HTTPD_ROOT "/os2httpd"
>   #else
>   #define HTTPD_ROOT "/usr/local/etc/httpd"
>   #endif
> + #endif
>   
>   /* Root of server */
> + #ifndef DOCUMENT_LOCATION
>   #ifdef __EMX__
>   /* Set default for OS/2 file system */ 
>   #define DOCUMENT_LOCATION "/os2httpd/docs"
>   #else
>   #define DOCUMENT_LOCATION "/usr/local/etc/httpd/htdocs"
>   #endif
> + #endif
>   
>   /* Max. number of dynamically loaded modules */
>   #define DYNAMIC_MODULE_LIMIT 64
>   
>   /* Default administrator's address */
> + #ifndef DEFAULT_ADMIN
>   #define DEFAULT_ADMIN "[no address given]"
> + #endif
>   
>   /* 
>    * --------- You shouldn't have to edit anything below this line ----------
> 


Mime
View raw message