Forum Moderators: phranque

Message Too Old, No Replies

DocumentRoot not valid if in /home and 3 levels deep

very strange and specific problem, no clues yet.

         

marshallbrunson

7:11 pm on Dec 28, 2004 (gmt 0)



Hi everybody.

What we have is an RPM installation of apache 2.0.52 running on Fedora Core 3. The httpd service starts fine UNLESS we have DocumentRoot specified as a directory that is in the /home file system AND is more than 2 subdirectories deep. take the following:

/home
works fine as a DocumentRoot

/home/httpd
works fine

/home/httpd/anythingelse
this will cause the httpd service to fail on startup, and report 'syntax error on line xyz: DocumentRoot must be a directory'

interestingly, I can specify a 10-level deep DocumentRoot if I don't put it in /home (I tried /etc/1/2/3/4/5/6/7/8/9/0 as a test and it worked).

Any idea why I can't use a 3-level deep directory in the under /home?

all file systems are on the local disk.

-marshall

distinctimaging

10:41 pm on Jan 2, 2005 (gmt 0)



I had a similar problem and tracked it down to the new SELinux security model. The following URL helped
[tech-uno.com...]
I believe it's possible to not completely disable SELinux, but I didn't have time to learn how yet.

I hope that helps.