From: William A. Rowe Jr Date: Fri, 21 Dec 2007 08:40:11 +0000 (+0000) Subject: Start preparing to use the general-case httpd.conf.in, X-Git-Tag: 2.3.0~1123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c86828df9e137a382dff8e110feb90b9f4d42a69;p=thirdparty%2Fapache%2Fhttpd.git Start preparing to use the general-case httpd.conf.in, on Win32. Note the quoted log *filenames*, which lets us figure out the difference between fixing "access_log" to be a windows friendly "access.log", and leaving the custom log format name pretty_log alone. Also, prefer the user specified port for example ServerName. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@606135 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/conf/httpd.conf.in b/docs/conf/httpd.conf.in index a165e575125..ef3f3adefe0 100644 --- a/docs/conf/httpd.conf.in +++ b/docs/conf/httpd.conf.in @@ -13,9 +13,9 @@ # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with "/" (or "drive:/" for Win32), the # server will use that explicit path. If the filenames do *not* begin -# with "/", the value of ServerRoot is prepended -- so "@rel_logfiledir@/foo.log" +# with "/", the value of ServerRoot is prepended -- so "@rel_logfiledir@/foo_log" # with ServerRoot set to "@@ServerRoot@@" will be interpreted by the -# server as "@@ServerRoot@@/@rel_logfiledir@/foo.log". +# server as "@@ServerRoot@@/@rel_logfiledir@/foo_log". # # ServerRoot: The top of the directory tree under which the server's @@ -54,6 +54,7 @@ Listen @@Port@@ @@LoadModule@@ + # # If you wish httpd to run as a different user or group, you must run # httpd as root initially and it will switch. @@ -64,6 +65,8 @@ Listen @@Port@@ # User daemon Group daemon + + # 'Main' server configuration @@ -92,7 +95,7 @@ ServerAdmin you@example.com # # If your host doesn't have a registered DNS name, enter its IP address here. # -#ServerName www.example.com:80 +#ServerName www.example.com:@@Port@@ # # DocumentRoot: The directory out of which you will serve your @@ -177,7 +180,7 @@ DocumentRoot "@exp_htdocsdir@" # logged here. If you *do* define an error logfile for a # container, that host's errors will be logged there and not here. # -ErrorLog @rel_logfiledir@/error_log +ErrorLog "@rel_logfiledir@/error_log" # # LogLevel: Control the number of messages logged to the error_log. @@ -206,13 +209,13 @@ LogLevel warn # define per- access logfiles, transactions will be # logged therein and *not* in this file. # - CustomLog @rel_logfiledir@/access_log common + CustomLog "@rel_logfiledir@/access_log" common # # If you prefer a logfile with access, agent, and referer information # (Combined Logfile Format) you can use the following directive. # - #CustomLog @rel_logfiledir@/access_log combined + #CustomLog "@rel_logfiledir@/access_log" combined