How to share NFS drive content to web port 80 using apache ?
Hi All,
My goal is to provide file access through HTTP to all of my NFS shared drive that i dedicated for public access. Is it possible to create a website using HTTP which list all of the contains of my NFS shared drive to the public ? it is failed even just to showmount, in Windows i usually access it using \\10.2.2.50\Volume_1 on the windows explorer. Code:
root@sv6:/etc/apache2# apt-get install nfs-common |
FYI: this is D-Link DNS-323 NAS device.
|
assuming you can mount the device simply change the document root of your web server in either your apache2.conf or /etc/apache2/sites-available/000-default to the mounted nfs volume
|
Once you have your Apache service up and running simply put a link in the document root to the nfs share directory.
Make sure your site is configured to allow indexes and following symlinks: <Directory /var/www/html/site> Options Indexes FollowSymLinks MultiViews AllowOverride AuthConfig Limit Order allow,deny allow from all </Directory> |
|
ah yes, WebDAV I almost forgot about that, thanks man for the suggestion, I'll try WebDAV protocol first and then back to NFS.
Cheers. |
All times are GMT -5. The time now is 03:25 AM. |