Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 11-02-2010, 09:19 PM   #1
Registered: Aug 2010
Posts: 50

Rep: Reputation: 1
Question 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 \\\Volume_1 on the windows explorer.

root@sv6:/etc/apache2# apt-get install nfs-common

root@sv6:/etc/apache2# showmount
clnt_create: RPC: Program not registered

root@sv6:/etc/apache2# showmount -e
clnt_create: RPC: Port mapper failure - RPC: Unable to receive
Old 11-02-2010, 09:22 PM   #2
Registered: Aug 2010
Posts: 50

Original Poster
Rep: Reputation: 1
FYI: this is D-Link DNS-323 NAS device.
Old 11-02-2010, 09:32 PM   #3
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,225

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
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
1 members found this post helpful.
Old 11-03-2010, 01:13 PM   #4
Registered: Feb 2010
Location: Raleigh, NC
Posts: 83

Rep: Reputation: 22
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
1 members found this post helpful.
Old 11-03-2010, 01:20 PM   #5
Senior Member
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
Or forget NFS and use WebDAV.
1 members found this post helpful.
Old 11-04-2010, 08:27 AM   #6
Registered: Aug 2010
Posts: 50

Original Poster
Rep: Reputation: 1
ah yes, WebDAV I almost forgot about that, thanks man for the suggestion, I'll try WebDAV protocol first and then back to NFS.



nfs, samba, ubuntu

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
Installing any Open-Source web browser on a linux BOX and share it over NFS Rednameless Linux - Software 11 03-10-2010 04:36 PM
Troubles with NFS Share being Accessible via Apache and the Web djsting Linux - Newbie 3 06-29-2008 04:00 PM
LXer: Use mod_deflate to compress web content delivered by Apache LXer Syndicated Linux News 0 06-06-2008 12:42 AM
kubuntu getting nfs to share a ntfs drive nclaan Linux - Networking 1 09-12-2007 04:58 PM
Apache - default *.pl or *.cgi scripts on NFS share pdhami Linux - Enterprise 0 05-17-2004 11:34 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:18 PM.

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