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: Can I use Alias with files on a network share |
|
Author |
|
CZone
Joined: 03 May 2006 Posts: 1
|
Posted: Wed 03 May '06 7:09 Post subject: Can I use Alias with files on a network share |
|
|
Hi, I have a web server that I'm playing around with on my home network running Windows 2000 Pro w/ SP4. I was using IIS before I put Apache 2.0 on it. When I was using IIS, I was able to create a virtual directory to point to a network share.
I am new to Apache, but I understand that it uses the ALIAS directive to point to files local to the web server but not located within the DocumentRoot. Can I use ALIAS with network shares?
For example, if my website URL is http://server, and I want requests for http://server/etrl to point to a folder called "etrl" on a network file share called \\server2\library, can I do that? (SERVER2 is running Linux, in case that matters.) If so, what is the correct syntax for the ALIAS directive? I've tried adding this line in my httpd.conf file:
ALIAS /etrl //server2/library/etrl
I've tried reversing the forward slashes to backward slashes. I have also tried various combinations using quotes, mapping a drive or not, with backslashes or forward slashes. All I get is the IE HTTP 404 Page cannot be found error. |
|
Back to top |
|
Jorge
Joined: 12 Mar 2006 Posts: 376 Location: Belgium
|
Posted: Wed 03 May '06 16:11 Post subject: |
|
|
My best bet wouldbe:
Mount the share as a network drive e.g. x:\ then just alias to that ^^ |
|
Back to top |
|
chad
Joined: 24 Aug 2006 Posts: 12
|
Posted: Wed 04 Apr '07 22:30 Post subject: |
|
|
Jorge wrote: | My best bet wouldbe:
Mount the share as a network drive e.g. x:\ then just alias to that ^^ |
Jorge, please allow me to ask: how would you do that if Apache was running as a service under a Windows 2003 server? |
|
Back to top |
|
|
|
|
|
|