You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Eric Wagar <er...@deadhookers.org> on 2004/12/04 04:48:22 UTC
[users@httpd] Why is DocumentRoot returning an error
When ever I restart my 2.0.40 server, I receive these in the /var/log/messages
log:
Dec 3 19:31:32 sm httpd: Warning: DocumentRoot [/var/www/html] does not exist
But, as you can see, I don't have a DocumentRoot /var/www/html
[root@sm log]# grep -i documentroot /etc/httpd/conf/httpd.conf
DocumentRoot /var/www/sites/default
# DocumentRoot /var/www/sites/test.net
# DocumentRoot /var/www/sites/test2.net
DocumentRoot /var/www/sites/www.media.com
DocumentRoot /var/www/sites/old-www.media.com
Is Apache simply thinking that there should be a /var/www/html dir? If so,
why? And, how do I get rid of that message?
Thanks
eric
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Why is DocumentRoot returning an error
Posted by Rainer Bendig aka Ny <li...@unresolvedissue.org>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Eric Wagar, *,
Eric Wagar wrote on Fri Dec 03, 2004 at 07:48:22PM -0800:
> [root@sm log]# grep -i documentroot /etc/httpd/conf/httpd.conf
Bad idea, in httpd.conf you can include files with virtual hosts
directives via "Include /foo/bar.var" even with regexps.
Maybe you should first grep for Includes and
grep -ri documentroot /etc/httpd/*
the -r greps recursive ...
Rainer
- --
- ---------------------------------------------------------------------
Rainer 'Ny' Bendig | http://UnresolvedIssue.org | GPG-Key: 0xCC7EA575
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQFBtAGstpAZoWtAN98RAp3CAKCU0EBkS7W8r+8A2I4gJjbkwnhVBwCfSygT
T+GzYUevZt5UTdnP7FV4Ibs=
=SoDJ
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Why is DocumentRoot returning an error
Posted by The Disguised Jedi <di...@gmail.com>.
> But, as you can see, I don't have a DocumentRoot /var/www/html
Have you completely searched your httpd.conf for that path? Maybe
there is a directive somewhere else that is throwing it off.
> Is Apache simply thinking that there should be a /var/www/html dir? If so,
> why? And, how do I get rid of that message?
You could create the directory, and see if the message quits.
--
The Disguised Jedi
disguised.jedi@gmail.com
PHP rocks!
Disclaimer: Any disclaimer attached to this message may be ignored.
This message is Certified Virus Free by McAfee VirusScan
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org