Computing.Net > Forums > Web Development > Apache's Document Root

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Apache's Document Root

Reply to Message Icon

Name: hippiejoeland (by HippieJoeLand)
Date: March 6, 2005 at 14:23:03 Pacific
OS: Linux
CPU/Ram: 233/256
Comment:

I have a question regarding Apache version 2.0.52-9. I am trying to change the DocumentRoot to another physical drive mounted under /mnt/data. I change the necessary settings in httpd.conf, restart the server, and on restart I get an error saying that “DocumentRoot must be a directory”. Well it is a directory. I can change it fine to something like /tmp. I can not figure out why it won't change to something under /mnt. Are you not allowed to point to a mounted directory?

My goal is also to allow directory listings. I know this works; again I can list directories and sub directories fine in /tmp. However, because of the trouble I am having about changing DocumentRoot, I decided to have a symlink point to the mount, and leave DocumentRoot default. I can not do this, though I have:

Options FollowSymLinks

Also, I can point to a directory outside of the DocumentRoot for directory listing successfully as well, just not the mount. If my DocumentRoot is default, I can have another Directory entry pointing to /usr/share and successfully to listings. All the security on the mount is 755. Any ideas?

Also, though this is not related, does anyone know of an ftp server that will allow you to confine a user (not anonymous) to a specific directory and its subdirectories, but not allow them to navigate away? Thanks an take care everyone!
HippieJoe



Sponsored Link
Ads by Google

Response Number 1
Name: Raluca Musaloiu-E.
Date: March 15, 2005 at 01:55:16 Pacific
Reply:

You got "DocumentRoot must be a directory" error even it is really a directory because of SELinux extensions. Run system-config-securitylevel (or redhat-config-securitylevel) to disable SELinux for httpd or give SELinux permissionsto that directory:

chcon -R -h -t httpd_sys_content_t /path/to/directory

More help at: http://fedora.redhat.com/docs/selinux-faq-fc3/index.html

I hope this will solve your second problem also ;).


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Apache's Document Root

Someone using my domain name? www.computing.net/answers/webdevel/someone-using-my-domain-name/1916.html

configuring apache web server www.computing.net/answers/webdevel/configuring-apache-web-server-/2175.html

Help with Apache webserver! www.computing.net/answers/webdevel/help-with-apache-webserver/1638.html