You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jay Paulson <jp...@sedl.org> on 2005/03/01 22:22:15 UTC
[users@httpd] Warning: Documentroot doesn't exist
I've set up my VirtualHosts and for each Documentroot I get a warning
that it does not exist.
Warning: DocumentRoot [/home/httpd/webdev/html] does not exist
My VirtualHost is below.
<VirtualHost *:80>
ServerAdmin jpaulson@sedl.org
DocumentRoot /home/httpd/webdev/html
#ServerName
DirectoryIndex index.php index.htm index.html index.cgi
ErrorLog logs/error_log
CustomLog logs/access_log combined
</VirtualHost>
Any ideas on what is causing this problem? The directory is there.
I'm running Apache 2.
Thanks for any help.
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
Re: [users@httpd] Warning: Documentroot doesn't exist
Posted by Kevin O'Neil <ke...@verizon.net>.
I am sorry that I didn't delete my signature on the previous post.
Thanks,
Kevin
----- Original Message -----
From: "Kevin O'Neil" <ke...@verizon.net>
To: <us...@httpd.apache.org>
Sent: Tuesday, March 01, 2005 7:36 PM
Subject: Re: [users@httpd] Warning: Documentroot doesn't exist
> When working with virtual hosts you have to use virtualdocumentroot.
>
> You should also list your default website as the first virtual host.
>
> DocumentRoot is in fact the default html directory.
>
> Each time you list a new documentroot you will get errors because each one
> after the other is canceling the previous out.
>
> When you use virtualdocumentroot it is specified for that exact virtual
> host.
>
> When you have more than one virtual host, each one should have a unique
> virtualdocumentroot unless they share a common one.
>
>
>
> Thank you for shopping at Kevin's Lair!
> Kevin
>
> Kevin's Lair
> http://www.kevinslair.com
>
> ----- Original Message -----
> From: "Joshua Slive" <js...@gmail.com>
> To: <us...@httpd.apache.org>; "Kevin O'Neil" <ke...@verizon.net>
> Sent: Tuesday, March 01, 2005 7:31 PM
> Subject: Re: [users@httpd] Warning: Documentroot doesn't exist
>
>
>> On Tue, 01 Mar 2005 16:32:34 -0500, Kevin O'Neil <ke...@verizon.net>
>> wrote:
>>> Instead of DocumentRoot, use VirtualDocumentRoot
>>
>> Huh? Why? Do you understand the purpose of VirtualDocumentRoot?
>>
>> It may or may not get rid of the error here, but it is certainly not
>> the right way of solving the problem.
>>
>> Joshua.
>>
>> ---------------------------------------------------------------------
>> 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
>>
>>
>
>
>
> ---------------------------------------------------------------------
> 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
>
>
---------------------------------------------------------------------
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] Warning: Documentroot doesn't exist
Posted by Gene <li...@Bomgardner.net>.
The following works reliably on my server (Names changed to protect the
guilty):
================================
#
# Default virtual host (Default.net / Brightstar.)
<VirtualHost *>
ServerAdmin glb@Default.net
DocumentRoot "/usr/local/www/data"
ServerName Default.net
ServerAlias brights.ath.cx
</VirtualHost>
#
# Jon's MyThoughtsAlive.com
#
<VirtualHost *>
ServerAdmin jonlb@ddomain.net
DocumentRoot "/usr/local/www/vdomains/mytacom"
ServerName mythoughtsalive.com
ErrorLog /var/log/mythoughtsalive.com-error_log
CustomLog /var/log/mythoughtsalive.com-access_log common
ScriptAlias /cgi-bin/ "/usr/local/www/vdomains/mytacom/cgi-bin/"
</VirtualHost>
#
# Jon's Solargradesigns.com
#
<VirtualHost *>
ServerAdmin jonlb@ddomain.net
DocumentRoot "/usr/local/www/vdomains/sgdcom"
ServerName solargradesigns.com
ErrorLog /var/log/solargradesigns.com-error_log
CustomLog /var/log/solargradesigns.com-access_log common
ScriptAlias /cgi-bin/ "/usr/local/www/vdomains/sgdcom/cgi-bin/"
</VirtualHost>
===============================
Best'o'luck,
Gene
---------------------------------------------------------------------
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] Warning: Documentroot doesn't exist
Posted by Joshua Slive <js...@gmail.com>.
On Tue, 01 Mar 2005 19:36:14 -0500, Kevin O'Neil <ke...@verizon.net> wrote:
> When working with virtual hosts you have to use virtualdocumentroot.
No, that is not correct. VirtualDocumentRoot is used *only* for
mass-vhosting with mod_vhost_alias. It should not be used for
ordinary virtual hosting where each <VirtualHost> section has a unique
DocumentRoot. Please read the virtual host documentation at
http://httpd.apache.org/docs-2.0/vhosts/name-based.html
Joshua.
---------------------------------------------------------------------
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] Warning: Documentroot doesn't exist
Posted by Kevin O'Neil <ke...@verizon.net>.
When working with virtual hosts you have to use virtualdocumentroot.
You should also list your default website as the first virtual host.
DocumentRoot is in fact the default html directory.
Each time you list a new documentroot you will get errors because each one
after the other is canceling the previous out.
When you use virtualdocumentroot it is specified for that exact virtual
host.
When you have more than one virtual host, each one should have a unique
virtualdocumentroot unless they share a common one.
Thank you for shopping at Kevin's Lair!
Kevin
Kevin's Lair
http://www.kevinslair.com
----- Original Message -----
From: "Joshua Slive" <js...@gmail.com>
To: <us...@httpd.apache.org>; "Kevin O'Neil" <ke...@verizon.net>
Sent: Tuesday, March 01, 2005 7:31 PM
Subject: Re: [users@httpd] Warning: Documentroot doesn't exist
> On Tue, 01 Mar 2005 16:32:34 -0500, Kevin O'Neil <ke...@verizon.net>
> wrote:
>> Instead of DocumentRoot, use VirtualDocumentRoot
>
> Huh? Why? Do you understand the purpose of VirtualDocumentRoot?
>
> It may or may not get rid of the error here, but it is certainly not
> the right way of solving the problem.
>
> Joshua.
>
> ---------------------------------------------------------------------
> 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
>
>
---------------------------------------------------------------------
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] Warning: Documentroot doesn't exist
Posted by Joshua Slive <js...@gmail.com>.
On Tue, 01 Mar 2005 16:32:34 -0500, Kevin O'Neil <ke...@verizon.net> wrote:
> Instead of DocumentRoot, use VirtualDocumentRoot
Huh? Why? Do you understand the purpose of VirtualDocumentRoot?
It may or may not get rid of the error here, but it is certainly not
the right way of solving the problem.
Joshua.
---------------------------------------------------------------------
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] Warning: Documentroot doesn't exist
Posted by Kevin O'Neil <ke...@verizon.net>.
Jay,
I almost forgot, try using this as well inside the virtual host directive:
<VirtualHost *:80>
ServerAdmin jpaulson@sedl.org
VirtualDocumentRoot /home/httpd/webdev/html
<Directory /home/httpd/webdev/cgi-bin>
Options +ExecCGI
SetHandler cgi-script
AddHandler cgi-script .cgi
</Directory>
#ServerName
DirectoryIndex index.php index.htm index.html index.cgi
ErrorLog logs/error_log
CustomLog logs/access_log combined
</VirtualHost>
Please, if I am wrong, someone correct me. I have this working on my server
and it runs 100%.
Thanks,
Kevin
----- Original Message -----
From: "Jay Paulson" <jp...@sedl.org>
To: "Kevin O'Neil" <ke...@verizon.net>
Sent: Tuesday, March 01, 2005 5:22 PM
Subject: Re: [users@httpd] Warning: Documentroot doesn't exist
> Thanks so much! This fixed the problem. All I need to do now is figure
> out this 403 error I'm getting!
>
> jay
>
>> Jay, also if you are going to use script alias for the /cgi-bin/ you have
>> to use:
>> VirtualScriptAlias /cgi-bin/ " /home/httpd/webdev/cgi-bin/ "
>>
>>
>> Thanks,
>> Kevin
>>
>>
>> ----- Original Message ----- From: "Kevin O'Neil"
>> <ke...@verizon.net>
>> To: <us...@httpd.apache.org>
>> Sent: Tuesday, March 01, 2005 4:32 PM
>> Subject: Re: [users@httpd] Warning: Documentroot doesn't exist
>>
>>
>>> Instead of DocumentRoot, use VirtualDocumentRoot
>>>
>>>
>>>
>>> ----- Original Message ----- From: "Jay Paulson" <jp...@sedl.org>
>>> To: <us...@httpd.apache.org>
>>> Sent: Tuesday, March 01, 2005 4:22 PM
>>> Subject: [users@httpd] Warning: Documentroot doesn't exist
>>>
>>>
>>>> I've set up my VirtualHosts and for each Documentroot I get a warning
>>>> that it does not exist.
>>>>
>>>> Warning: DocumentRoot [/home/httpd/webdev/html] does not exist
>>>>
>>>> My VirtualHost is below.
>>>>
>>>> <VirtualHost *:80>
>>>> ServerAdmin jpaulson@sedl.org
>>>> DocumentRoot /home/httpd/webdev/html
>>>> #ServerName
>>>> DirectoryIndex index.php index.htm index.html index.cgi
>>>> ErrorLog logs/error_log
>>>> CustomLog logs/access_log combined
>>>> </VirtualHost>
>>>>
>>>> Any ideas on what is causing this problem? The directory is there.
>>>> I'm running Apache 2.
>>>>
>>>> Thanks for any help.
>>>> 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
>>>>
>>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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
>>
>>
> Jay Paulson
> Web Design Specialist
> Southwest Educational Development Laboratory
> 211 E. 7th St., Suite 200
> Austin, TX 78701-3253
> 512-476-6861 (voice)
> 512-476-2286 (fax)
> http://www.sedl.org
>
>
---------------------------------------------------------------------
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] Warning: Documentroot doesn't exist
Posted by Kevin O'Neil <ke...@verizon.net>.
Jay, also if you are going to use script alias for the /cgi-bin/ you have to
use:
VirtualScriptAlias /cgi-bin/ "/home/httpd/webdev/cgi-bin/"
Thanks,
Kevin
----- Original Message -----
From: "Kevin O'Neil" <ke...@verizon.net>
To: <us...@httpd.apache.org>
Sent: Tuesday, March 01, 2005 4:32 PM
Subject: Re: [users@httpd] Warning: Documentroot doesn't exist
> Instead of DocumentRoot, use VirtualDocumentRoot
>
>
>
> ----- Original Message -----
> From: "Jay Paulson" <jp...@sedl.org>
> To: <us...@httpd.apache.org>
> Sent: Tuesday, March 01, 2005 4:22 PM
> Subject: [users@httpd] Warning: Documentroot doesn't exist
>
>
>> I've set up my VirtualHosts and for each Documentroot I get a warning
>> that it does not exist.
>>
>> Warning: DocumentRoot [/home/httpd/webdev/html] does not exist
>>
>> My VirtualHost is below.
>>
>> <VirtualHost *:80>
>> ServerAdmin jpaulson@sedl.org
>> DocumentRoot /home/httpd/webdev/html
>> #ServerName
>> DirectoryIndex index.php index.htm index.html index.cgi
>> ErrorLog logs/error_log
>> CustomLog logs/access_log combined
>> </VirtualHost>
>>
>> Any ideas on what is causing this problem? The directory is there. I'm
>> running Apache 2.
>>
>> Thanks for any help.
>> 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
>>
>>
>
>
>
> ---------------------------------------------------------------------
> 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
>
>
---------------------------------------------------------------------
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] Warning: Documentroot doesn't exist
Posted by Kevin O'Neil <ke...@verizon.net>.
Instead of DocumentRoot, use VirtualDocumentRoot
----- Original Message -----
From: "Jay Paulson" <jp...@sedl.org>
To: <us...@httpd.apache.org>
Sent: Tuesday, March 01, 2005 4:22 PM
Subject: [users@httpd] Warning: Documentroot doesn't exist
> I've set up my VirtualHosts and for each Documentroot I get a warning that
> it does not exist.
>
> Warning: DocumentRoot [/home/httpd/webdev/html] does not exist
>
> My VirtualHost is below.
>
> <VirtualHost *:80>
> ServerAdmin jpaulson@sedl.org
> DocumentRoot /home/httpd/webdev/html
> #ServerName
> DirectoryIndex index.php index.htm index.html index.cgi
> ErrorLog logs/error_log
> CustomLog logs/access_log combined
> </VirtualHost>
>
> Any ideas on what is causing this problem? The directory is there. I'm
> running Apache 2.
>
> Thanks for any help.
> 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
>
>
---------------------------------------------------------------------
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] Warning: Documentroot doesn't exist
Posted by Jay Paulson <jp...@sedl.org>.
>> With the Fedora Core 3 httpd package? This is because the SELinux
>> policy will deny httpd access to any unlabelled files by default.
>> See:
>
> Joe, Do you know if apache puts anything useful in the error log in
> this case? If not, it should. This is becoming a hard-to-diagnose
> FAQ.
>
The link that Joe put in his email has the answers. However, here's a
tail of my /var/log/messages (why I didn't look there first I don't
know DOH!)
It makes total sense now that I know about SELinux and what it does to
the file system. I have yet to test it out but I doubt that I'll run
into any errors.
Mar 2 10:59:37 webdev kernel: audit(1109782777.321:0): avc: denied {
search } for pid=6503 exe=/usr/sbin/httpd name=webdev dev=dm-0
ino=13680661 scontext=root:system_r:httpd_t
tcontext=root:object_r:user_home_t tclass=dir
Mar 2 10:59:37 webdev httpd: Warning: DocumentRoot
[/home/httpd/webdev/html] does not exist
Mar 2 10:59:37 webdev kernel: audit(1109782777.627:0): avc: denied {
search } for pid=6504 exe=/usr/sbin/httpd name=webdev dev=dm-0
ino=13680661 scontext=root:system_r:httpd_t
tcontext=root:object_r:user_home_t tclass=dir
Mar 2 10:59:37 webdev httpd: httpd startup succeeded
Mar 2 10:59:39 webdev kernel: audit(1109782779.908:0): avc: denied {
search } for pid=6507 exe=/usr/sbin/httpd name=webdev dev=dm-0
ino=13680661 scontext=root:system_r:httpd_t
tcontext=root:object_r:user_home_t tclass=dir
Mar 2 10:59:39 webdev kernel: audit(1109782779.908:0): avc: denied {
getattr } for pid=6507 exe=/usr/sbin/httpd path=/home/httpd/webdev
dev=dm-0 ino=13680661 scontext=root:system_r:httpd_t
tcontext=root:object_r:user_home_t tclass=dir
Thanks for everyone's help!
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
Re: [users@httpd] Warning: Documentroot doesn't exist
Posted by Jay Paulson <jp...@sedl.org>.
>>> With the Fedora Core 3 httpd package? This is because the SELinux
>>> policy will deny httpd access to any unlabelled files by default.
>>> See:
>>
>> Joe, Do you know if apache puts anything useful in the error log in
>> this case? If not, it should. This is becoming a hard-to-diagnose
>> FAQ.
>
> No, nothing more useful; it should give the "Permission denied" error
> message too which would at least give the user a hope in diagnosing the
> problem, I've had that on my todo list for a while.
>
I wanted to update everyone with what I did in order to get apache and
file permissions to work correctly on my machine.
First I added apache to my 'www' group I created for multiple users to
edit a single file. Next I chmoded -R g+s /var/www/test which is my
DocumentRoot in apache.
That seems to have solved all my problems with file permissions with
multiple users editing a single file and getting rid of the 403
Forbidden error! Now all I have got to do is get cgi scripts to work!
Thanks for everyone's help. I hope this can help someone in the future
:)
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
Re: [users@httpd] Warning: Documentroot doesn't exist
Posted by Joe Orton <jo...@redhat.com>.
On Wed, Mar 02, 2005 at 12:57:07PM -0500, Joshua Slive wrote:
> On Wed, 2 Mar 2005 17:20:55 +0000, Joe Orton <jo...@redhat.com> wrote:
> > With the Fedora Core 3 httpd package? This is because the SELinux
> > policy will deny httpd access to any unlabelled files by default. See:
>
> Joe, Do you know if apache puts anything useful in the error log in
> this case? If not, it should. This is becoming a hard-to-diagnose
> FAQ.
No, nothing more useful; it should give the "Permission denied" error
message too which would at least give the user a hope in diagnosing the
problem, I've had that on my todo list for a while.
joe
---------------------------------------------------------------------
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] Warning: Documentroot doesn't exist
Posted by Joshua Slive <js...@gmail.com>.
On Wed, 2 Mar 2005 17:20:55 +0000, Joe Orton <jo...@redhat.com> wrote:
> With the Fedora Core 3 httpd package? This is because the SELinux
> policy will deny httpd access to any unlabelled files by default. See:
Joe, Do you know if apache puts anything useful in the error log in
this case? If not, it should. This is becoming a hard-to-diagnose
FAQ.
Joshua.
---------------------------------------------------------------------
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] Warning: Documentroot doesn't exist
Posted by Joe Orton <jo...@redhat.com>.
On Tue, Mar 01, 2005 at 03:22:15PM -0600, Jay Paulson wrote:
> I've set up my VirtualHosts and for each Documentroot I get a warning
> that it does not exist.
>
> Warning: DocumentRoot [/home/httpd/webdev/html] does not exist
With the Fedora Core 3 httpd package? This is because the SELinux
policy will deny httpd access to any unlabelled files by default. See:
http://fedora.redhat.com/docs/selinux-apache-fc3/
and either label the files:
# chcon -R system_u:object_r:httpd_sys_content_t /home/httpd/webdev
to fix the issue, or permanently disable the SELinux policy for httpd:
# setsebool -P httpd_disable_trans=1
(make sure you're using the latest libselinux package from the updates)
joe
---------------------------------------------------------------------
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