Setting up apache problem

Basil Mohamed Gohar abu_hurayrah at hidayahonline.org
Mon May 4 05:41:29 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/04/2009 01:40 AM, Richard Fearn wrote:
> Hello,
> 
>> I've just about everything set up correctly, but when I restart httpd, I
>> keep getting the error that DocumentRoot /var/www/html/willowherbdesigns
>> doesn't exist, despite it being there (it's a symlink
>> to /web/willowherbdesigns).
> 
> Probably because the content under /web doesn't have the right SELinux
> context; it should be system_u:object_r:httpd_sys_content_t:s0.
> 
> You can check the context with ls -lZ, and if it's wrong, relabel using
> 
>   chcon system_u:object_r:httpd_sys_content_t:s0 /web/willowherbdesigns
> 
> Regards,
> 
> Rich
> 

The error httpd throws in this kind of case (SELinux) is 403 Forbidden,
not 404 not found or does not exist.

I know because I've had to deal with it a lot.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkn+gAQACgkQaVgOCFr0s2JzaACeOJAX0Hi+PnmG9KkGFxbAGcS2
83IAnRAacXUuE1V0/g2q50NeGTRPdFjY
=0M3h
-----END PGP SIGNATURE-----




More information about the fedora-devel-list mailing list