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.

link|improve this question

72% accept rate
feedback

1 Answer

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>
link|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. – ErikA 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
feedback

Your Answer

 
or
required, but never shown

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