Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-13-2005, 06:52 AM   #1
LQ Newbie
Registered: Jun 2005
Location: South Africa
Posts: 1

Rep: Reputation: 0
Apache Directory Listing Of NFS Mount, cannot view directory list via apache


I have the following systems
* RHEL ver4
* Windows Storage Server2003 running NFS Server
* httpd.conf Document Root set to "/opt/mnt"
* NFS mount on "/opt/mnt/reports" to an NFS share "reports" on the NFS server, everyone has full permissions. User apache mapped to user administrator. User root mapped to admin user.
* Other directories, sub directories and files exist on the NFS server under "reports"

When browsing, I am able to see the directories and files listed under /opt/mnt.
When browsing, I am UNABLE to see any existing files or directories in the list, except for "parent directory"
When browsing, I am able to see the list of files and directories.

If I unmount the NFS mount and create files & dirs under /opt/mnt/reports, I am able to view these via http.

# Problem: I am unable to view (via web) the contents of the first directory mounted via NFS #

The configuration works well if I use another version of Linux. I tested this on ver8.0 and 7.3.

Has anyone out there experienced with problem before?

You help will be greatly apprciated!

Old 12-19-2005, 03:57 AM   #2
LQ Newbie
Registered: Oct 2003
Posts: 5

Rep: Reputation: 0

I've got the exactly same problem...

When I start apache I get:

Starting httpd: Warning: DocumentRoot [/my/nfs/mount/] does not exist

Did you find a solution or anybody else know what to do?


Last edited by mosedrengen; 12-19-2005 at 03:59 AM.
Old 12-19-2005, 06:03 AM   #3
LQ Newbie
Registered: Oct 2003
Posts: 5

Rep: Reputation: 0
I fixed it.

It was because of a SELinux policy.

Just activate the use of nfs dirs with this command:

setsebool use_nfs_home_dirs 1

You can tjek your current status with:



Last edited by mosedrengen; 12-19-2005 at 06:10 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
apache directory listing doralsoral Linux - Software 2 06-15-2005 07:37 AM
apache - directory listing thejackal13 Linux - Software 1 01-05-2005 10:31 AM
Directory Listing with apache aroop Linux - Networking 2 06-02-2004 02:50 AM
apache 2 directory listing jwatco2001 Linux - Software 5 06-07-2003 06:29 PM
how to prevent directory listing in apache ? chuck77 Linux - General 7 12-21-2001 03:27 AM

All times are GMT -5. The time now is 04:12 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration