Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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

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 ;).

![]() |
![]() |
![]() |

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