LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 02-18-2009, 03:13 PM   #1
spycxamaican
LQ Newbie
 
Registered: Feb 2008
Location: Toronto, Canada
Distribution: open suse
Posts: 7

Rep: Reputation: 0
Can Apache be configured to use web files stored on a nas?


I would like to use a nas to store my web site files. Can Apache be configured to serve web files from the nas?

P
 
Old 02-18-2009, 03:44 PM   #2
frieza
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,111

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
sure it can
all you have to do is mount the nas with a given mount point
for instance an nfs server would be
mount -t nfs server:directory /mountpoint

or put a line in /etc/fstab
server:directory /mountpoint nfs defaults 0 0

then create a virtual host in apache with the name of the website as you want it to be accessed (eg www.example.com)
with the document root as /mountpoint

the easiest way to do this would be to download webmin from http://www.webmin.com and installing it
this provides a nice web interface for configuring the above
 
Old 02-19-2009, 08:09 PM   #3
spycxamaican
LQ Newbie
 
Registered: Feb 2008
Location: Toronto, Canada
Distribution: open suse
Posts: 7

Original Poster
Rep: Reputation: 0
Thank you. I am not well versed enough in Linux yet to understand you suggestion but at least now I know it is possible and have a starting point to work with. Also, thank you for the link to http://www.webmin.com/ I will check it out.

P
 
Old 02-19-2009, 11:02 PM   #4
spycxamaican
LQ Newbie
 
Registered: Feb 2008
Location: Toronto, Canada
Distribution: open suse
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by frieza View Post
sure it can
all you have to do is mount the nas with a given mount point
for instance an nfs server would be
mount -t nfs server:directory /mountpoint

or put a line in /etc/fstab
server:directory /mountpoint nfs defaults 0 0

then create a virtual host in apache with the name of the website as you want it to be accessed (eg www.example.com)
with the document root as /mountpoint

the easiest way to do this would be to download webmin from http://www.webmin.com and installing it
this provides a nice web interface for configuring the above
Hi frieza, I downloaded webmin (rpm) but could not install it via either yast or konqueror (am using opensuse 10.3 x64). Kept getting "no results" or "file not found on media". Guess it is not 64 bit compatible. Will try your first suggestion.

P
 
Old 02-21-2009, 02:33 PM   #5
NaCo
Member
 
Registered: Jun 2002
Location: L.A.
Distribution: Fedora
Posts: 46

Rep: Reputation: 15
Use NFS.

I think the a simple answer for this question is to use NFS, thus directories in the NAS server get mounted to the web server, and Apache will just see them as a local directory.

This is my understanding, perhaps someone else could confirm this.

NaCo/Angel/Angelito
 
  


Reply

Tags
nas, server, web


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
Apache - stop files from being accessible from web browser jlarsen Linux - Software 9 01-20-2009 11:14 PM
Buffalo NAS - how do we get files on NAS syncing with Windows Sync? bykerbob Linux - Newbie 0 10-21-2008 09:59 PM
Best Distro For NAS/Web Server? paul.hugill Linux - General 2 01-05-2007 08:30 AM
Web Browsers Forgetting stored info BrettPower Linux - Software 0 03-06-2004 01:36 PM
Apache web server not configured right :( chaskins Linux - Software 2 11-22-2003 12:29 PM


All times are GMT -5. The time now is 11:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration