httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "GOMEZ Henri" <hgo...@slib.fr>
Subject RE: 2.0.35 binaries for Linux boxes
Date Mon, 08 Apr 2002 12:47:11 GMT
The story continue :

1) Pidfile is located in http.conf into @rel_logfiledir@
   instead of @rel_runtimedir@ (following fhs)

so we got PidFile	/var/log/httpd2/httpd2.pid

instead of PidFile	/var/run/httpd2.pid 
as recommanded by FHS (and used by RH/MDK distros)

2) Redhat Linux (and maybe others), require
   User and Group set (ie)

User apache2
Group apache2

Could we add in configure a --with-user and --with-group
flag to set them ?

In httpd-std.conf.in it could became

User @rel_user@
Group @rel_group@ 

Final point, I've got ServerRoot in /etc/httpd2
and DocumentRoot in /var/www2/html via layout.config

So I finish with DocumentRoot /etc/httpd2/var/www2/html
instead of just DocumentRoot /var/www2/html

Could we avoid having @ServerRoot@ appended to @rel_htdocsdir@ ?
Ditto for error when @rel_errordir@ is created from layout.config
and for @rel_manualdir@

Regards

===>


--- docs/conf/httpd-std.conf.in	Thu Apr  4 11:15:43 2002
+++ docs/conf/httpd-std.conf.in.new	Mon Apr  8 14:46:02 2002
@@ -78,7 +78,7 @@
 # identification number when it starts.
 #
 <IfModule !mpm_netware.c>
-PidFile @rel_logfiledir@/httpd.pid
+PidFile @rel_runtimedir@/httpd.pid
 </IfModule>
 
 #
@@ -250,8 +250,8 @@
 #  when the value of (unsigned)Group is above 60000; 
 #  don't use Group #-1 on these systems!
 #
-User nobody
-Group #-1
+User @rel_user@
+Group @rel_group@
 </IfModule>
 </IfModule>
 
@@ -290,7 +290,7 @@
 # documents. By default, all requests are taken from this directory, but
 # symbolic links and aliases may be used to point to other locations.
 #
-DocumentRoot "@@ServerRoot@@/@rel_htdocsdir@"
+DocumentRoot "@rel_htdocsdir@"
 
 #
 # Each directory to which Apache has access can be configured with respect
@@ -315,7 +315,7 @@
 #
 # This should be changed to whatever you set DocumentRoot to.
 #
-<Directory "@@ServerRoot@@/@rel_htdocsdir@">
+<Directory "@rel_htdocsdir@">
 
 #
 # Possible values for the Options directive are "None", "All",
@@ -513,9 +513,9 @@
 # the manual, even if you choose to move your DocumentRoot.  You may comment
 # this out if you do not care for the documentation.
 #
-Alias /manual "@@ServerRoot@@/@rel_manualdir@"
+Alias /manual "@rel_manualdir@"
 
-<Directory "@@ServerRoot@@/@rel_manualdir@">
+<Directory "@rel_manualdir@">
     Options Indexes FollowSymLinks MultiViews
     AllowOverride None
     Order allow,deny
@@ -860,9 +860,9 @@
 
 <IfModule mod_negotiation.c>
 <IfModule mod_include.c>
-    Alias /error/ "@@ServerRoot@@/@rel_errordir@/"
+    Alias /error/ "@rel_errordir@/"
 
-    <Directory "@@ServerRoot@@/@rel_errordir@">
+    <Directory "@rel_errordir@">
         AllowOverride None
         Options IncludesNoExec
         AddOutputFilter Includes html

Mime
View raw message