httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <Owen.Bo...@swx.com>
Subject RE: [users@httpd] Warning: Documentroot doesn't exist
Date Wed, 02 Mar 2005 16:40:52 GMT


> -----Original Message-----
> From: Jay Paulson [mailto:jpaulson@sedl.org]
> Sent: Mittwoch, 2. März 2005 17:23
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Warning: Documentroot doesn't exist
> 
> 
> >> [root@webdev html]# ls -l /home/httpd/webdev/html
> >> total 16
> >> -rwxrw-r--  1 root www 10 Mar  1 11:41 index.htm
> >> -rwxr-xr-x  1 root www 20 Mar  1 11:41 index.php
> >>
> >> It looks pretty similar to me.
> >>
> >> jay
> >>
> >
> > For each folder from / up to hmtl, do ls -ld and check your 
> > permissions.
> >
> > Patrick
> >
> 
> What I'm finding strange is this.  If I use the VirtualDocumentRoot 
> /home/httpd/webdev/html Apache doesn't issue the warning message upon 
> starting up.  However, I get a 403 Forbidden message when i try to go 
> to the site's index.htm.

Why do you find this strange? Do you know what VirtualDocumentRoot does?
It is not a random alternative to DocumentRoot, it has a specific
purpose which is to allow a "variable" docroot based on the ServerName.
It is used in the context of mass virtual-hosting, not whenever you
happen to use any <VirtualHost> container (the poster who suggested that
was mistaken).

> 
> I did notice that the DocumentRoot in the 'Main server configuration' 
> section is /var/www/html.  I messed around with that to see 
> if I could 
> get the /home/httpd/webdev/html directory working.  Unfortunately I 
> couldn't therefore I changed the DocumentRoot to /var/www/webdev/html 
> and everything is working fine.  

There is obviously something funny with your setup that we are not
privvy to. If you're saying that /home/httpd/webdev/html and
/var/www/webdev/html are the same directory, then;

- one is a symbolic link of the other, or
- you have mounted the same disk-volume in two places, or
- some other clever thing

In any case, /home/httpd/webdev/html no longer sounds like a plain
directory under "/" so it is hardly suprising you get funny results.

Of course, all this would be revealed immediately if you were to do:

	cd /
	ls -d
	cd /home
	ls -d
	cd /home/html
	ls -d	
	cd /home/html/webdev
	ls -d

As requested previously...

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

> Below is my VH section.
> 
> <VirtualHost 198.214.140.243:80>
>          ServerAdmin webmaser@webmaster.org
>          DocumentRoot /var/www/webdev/html
>          ServerName webdev.sedl.org
>          DirectoryIndex index.php index.htm index.html index.cgi
>          ScriptAlias /cgi-bin/ "/var/www/webdev/cgi-bin/"
>          ErrorLog logs/error_log
>          CustomLog logs/access_log combined
> </VirtualHost>
> 
> For some reason Apache doesn't complain about this and I 
> don't get teh 
> 403 Forbidden error message.
> 
> jay
> 
> 
> ---------------------------------------------------------------------
> 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
> 
>

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 



---------------------------------------------------------------------
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


Mime
View raw message