Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is it possible to create a website using HTTP which list all of the contains of my NFS shared drive to the public ?

my goal is to provide file access through HTTP to all of my NFS shared drive that i dedicate for public access.

Thanks.

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

Sure, just make sure that mod_autoindex is enabled, and then in your Apache config, just make sure your NFS directory is within your apache DocumentRoot (or a proper alias created), and then allow Indexes for wherever you have your NFS path:

<Directory /path/to/nfs/mount>
    Options +Indexes
</Directory>
share|improve this answer
    
Cool, thanks for the quick reply, usually i access this drive using "\\IPaddress\shared_vol" in windows so i must figure it out how to mount it first on linux. –  Albert Widjaja Nov 3 '10 at 2:01
    
root@sv6:/etc/apache2# showmount clnt_create: RPC: Program not registered <br> root@sv6:/etc/apache2# showmount -e 10.2.2.50 clnt_create: RPC: Port mapper failure - RPC: Unable to receive root@sv6:/etc/apache2# –  Albert Widjaja Nov 3 '10 at 2:08
    
@Albert - are you sure NFS is enabled on your file server? If you've been accessing it via a UNC path (\\server\share\), then that's using over CIFS, not NFS. –  EEAA Nov 3 '10 at 2:22
    
thanks for the quick reply, it seems that the NFS is not installed in the DNS-323 NAS aplliance. –  Albert Widjaja Nov 3 '10 at 3:19
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.