--- "J. Craig Woods" <[EMAIL PROTECTED]> wrote:
> Dianne Marie Montesa wrote:
> > 
> > i beg to disagree ... on mandrake apache rpms, you
> > dont have to specify the DocumentRoot on its
> > httpd.conf, it is specified  on commonhttpd.conf
> which
> > is called by httpd.conf file as an Include item.
> > 
> 
> Your version must be different from mine. 

# rpm -qa|grep apache
apache-common-1.3.22-1.1mdk
apache-1.3.22-1.1mdk
apache-modules-1.3.22-1.1mdk
apache-manual-1.3.22-1.1mdk
apache-suexec-1.3.22-1.1mdk
apache-mod_perl-1.3.22_1.26-2.1mdk
apache-conf-1.3.22-1.1mdk

> I have 
> DocumentRoot specified
> in http.conf, and have it commented out in
> commonhttpd.conf. I do *have*
> to have it specified in "httpd.conf" or else it will
> not work.

on my version of apache, there is not any line with
DocumentRoot. 

# grep DocumentRoot httpd.conf

>  But you
> seem to be saying that it must be specified in *one*
> of these files,
> and, if that is what you are saying, you are right
> but you are
> inaccurate in saying it must be in the
> commonhttpd.conf file. 

to me, you dont even need the commonhttpd.conf file or
any other of the *.conf ... the only important one is
"httpd.conf". the RH layout apache just separated
parts of the main httpd.conf file to be easily 
managable. the Include statements call all of those
other *.conf. when apache program loads, it looks at
it as one big httpd.conf file. 

Include conf/commonhttpd.conf
Include conf/vhosts/Vhosts.conf
#Include conf/vhosts/DynamicVhosts.conf
#Include conf/vhosts/VirtualHomePages.conf
Include  conf/addon-modules/php.conf
Include  conf/ssl/mod_ssl.conf
Include  conf/ssl/ssl.default-vhost.conf

i didnt mean the DocumentRoot entry should *only* be
on commonhttpd.conf, you can find that too on
Vhosts.conf if you have other virtual hosts. what i am
only trying to point out is ... for this RH layout
apache, the GlobalSettings which include DocumentRoot
for the main webserver is usually on commonhttpd.conf.


> I, also,
> was less than accurate in making a statement that
> read as though both
> files must have DocumentRoot specified. In fact,
> commonhttpd.conf
> clearly reads "DO NOT MODIFY THIS ONE, USE
> httpd.conf" for the
> DocumentRoot entry. 

actually the "do not modify" thing is on the
httpd.conf on this mdk version of apache on 8.1

[root@dm conf]# head httpd.conf
### Main Configuration Section
### You really shouldn't change these settings unless
you're a guru
###
ServerType standalone
ServerRoot /etc/httpd
#ServerName localhost
#LockFile /etc/httpd/httpd.lock
PidFile /var/run/httpd.pid
ScoreBoardFile /etc/httpd/httpd.scoreboard
ErrorLog logs/error_log


> Thanks for your edification on this issue...

tee hee :-) these kinds of info need to be cleared. if
im wrong, id gladly want to be corrected. that way, i
learn too. 

cheers,
dianne

> 
> -- 
> J. Craig Woods
> UNIX/NT Network/System Administration
> 
> -Art is the illusion of spontaneity-
> 
> > Want to buy your Pack or Services from
MandrakeSoft?
> 
> Go to http://www.mandrakestore.com
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards�
http://movies.yahoo.com/

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to