Operating System - HP-UX
1833433 Members
2946 Online
110052 Solutions
New Discussion

Apache default web page does not list directories & files in NFS mounted filesystem

 
Luqman Achmat
Regular Advisor

Apache default web page does not list directories & files in NFS mounted filesystem

System : HP-UX 11.23 with latest patches as per HP recommended

NFS Server : Windows Storage Server 2003

mount point "/opt/mnt/reports" is an NFS mount to the Windows Storage Server, everyone has full permissions.

Greetings

I run Apache 2.0 on my hp-ux system (for this example, call it hpux.domain.com) with the document root set to "/opt/mnt/". In this same directory, I have an NFS mounted sub directory "/opt/mnt/reports" and another sub directory under reports called "/opt/mnt/reports/dir1". "dir1" in turn has yet another sub directory called "subdir1"

When browsing to "http://hpux.domain.com", I get the directory listing "reports".

But browsing to "http://hpux.domain.com/reports/" DOES NOT list the directory "dir1" (or any files) in the list, but DOES list "parent directory".

AND browsing to "http://hpux.domain.com/reports/dir1" DOES list the sub directory "subdir1" and any other sub directories drilled down from this point.

For other reasons, I can only make use of an NFS mounted filesystem.

I need to view the directory listing for the top-level folder 'reports'.

Can anyone out there help?

Luq A
2 REPLIES 2
Denver Osborn
Honored Contributor

Re: Apache default web page does not list directories & files in NFS mounted filesystem

Have you looked in /opt/hpws/apache/logs/error_log or access_log for details (or whatever ErrorLog is set to in your config). See if the logs contain info to let us know if there are any obvious problems.


Have you tried to put in the full url for a file that exists in reports/dir1 or any other subdir? If you're able to pull up the files but not list the contents of the dir, then it's most likely an apache config issue.

because it's an nfs mount, have a look at your apache config (httpd.conf) and add a directive to setup access to the nfs mount. This would go somewhere below documentroot.

May look something like this...


Options Indexes FollowSymLinks
EnableMMAP Off
EnableSendfile Off


After changing the apache config, restart apache. /opt/hpws/apache/bin/apachectl stop ; apachectl start

How was you're apache config setup? Was it all HP's default build and just documentroot changed?

Hope this helps,
-denver
Luqman Achmat
Regular Advisor

Re: Apache default web page does not list directories & files in NFS mounted filesystem

Hi Denver

Thanks for your response. The access and error_log don't give me any relevant clues. I can paste a tail of thos logs if you wish.

When I put in the FULL URL, it DOES work, except for the "http://hpux.domain.com/reports" - so I also suspect the apache config.

I am running a virtual host with the following config


ServerName hpux.domain.com
DocumentRoot /opt/mnt

Options Indexes FollowSymLinks +ExecCGI +Includes
AllowOverride All
Order allow,deny
Allow from all


I've also already added the directives you mentioned.
EnableMMAP Off
EnableSendfile Off

I have also tried the same config without the virtual host - same symptoms.

The apache setup was all default with only the above changes made and the "ServerName" Value defined.

I've tried mounting to another NFS server (WSS 2003), but experience the same symptoms.

If I do NOT mount the NFS mount, and place files and dirs in the reports directory, browsing to http://hpux.domain.com/reports LISTS the contents. So I'd have to say it has something to do with Apache and NFS.

Has anyone out there experienced this problem???

Regards
Luq