Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: remote directory |
|
Author |
|
detchie
Joined: 24 Jun 2010 Posts: 2 Location: halifax n.s
|
Posted: Thu 24 Jun '10 21:17 Post subject: remote directory |
|
|
I have been trying to figure out a good way to list and offer the contents of a remote directory. basicly my setup is I have a webserver running apache2, and on the same LAN I have another computer I use for file storage. I want to be able to link my site to a folder on the fileserver. What is the best way to do this type of thing? |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Thu 24 Jun '10 23:59 Post subject: |
|
|
We are talking Windows yes?
Run the Apache service as a user, a new user with some name (limited user is best but tricky to get working). Then you can start using shares from other computers. You will have to add this user as well to the fileserver, but limited user.
You will probably have to configure Apache like
DocumentRoot "//comptername/sharename/path/to/wherever" |
|
Back to top |
|
detchie
Joined: 24 Jun 2010 Posts: 2 Location: halifax n.s
|
Posted: Fri 25 Jun '10 0:01 Post subject: |
|
|
I will have to find another website for this help I guess. I didnt realize this was apache for windows. I use linux apache2 |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 25 Jun '10 9:52 Post subject: |
|
|
On Linux you can mount the remote computer with NFS and than configure apache as if there are local paths. |
|
Back to top |
|
|
|
|
|
|