logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: access to network shares and network drives
Author
luxo



Joined: 17 Mar 2008
Posts: 2

PostPosted: Mon 17 Mar '08 4:45    Post subject: access to network shares and network drives Reply with quote

I've just installed WAMPServer today for the first time and have struggled for a few hours with this issue. I need "www/music" to point to a network share (which I also have mapped as a network drive). In Unix I might just create a symbolic link, but since I'm on Windows I'm trying to setup an Apache alias.

This is the alias I'm trying to get working:

Alias /music "\\192.168.1.73\Qmultimedia\music\mp3_albums\"

<Directory "\\192.168.1.73\Qmultimedia\music\mp3_albums\">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>

Apache launches but the folder /music reports "You don't have permission to access /music/ on this server." However, if I rename the URL to gibberish I get the same response, so I don't think Apache is even accessing the network. The assumption appears to be confirmed by the Apache docs here:

http://httpd.apache.org/docs/2.2/platform/windows.html

Specifically: "By default, all Apache services are registered to run as the system user (the LocalSystem account). The LocalSystem account has no privileges to your network via any Windows-secured mechanism, including the file system, named pipes, DCOM, or secure RPC. It has, however, wide privileges locally."

I have tried in vain to get the service to run as another user. Changing the user & group settings in httpd.conf to my username doesn't seem to work. I've also tried using the mapped network drive as the alias, but in that case the Apache service won't even launch. I wouldn't think this would be an uncommon issue. Can anyone offer some suggestions?

Thanks,
Jeremy
Back to top
luxo



Joined: 17 Mar 2008
Posts: 2

PostPosted: Mon 17 Mar '08 6:15    Post subject: followup Reply with quote

I just found this helpful post that seemingly walks one through the necessary steps:
http://everything2.com/index.pl?node_id=1920844

...but after following it I still can't access network shares through Apache. Any further suggestions?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Mon 17 Mar '08 11:20    Post subject: Reply with quote

It worked for me to map the share as a drive and than access it with apache. But it is very slow

Code:

Alias /m/ "m://"
<Directory "m:/">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
Back to top


Reply to topic   Topic: access to network shares and network drives View previous topic :: View next topic
Post new topic   Forum Index -> Apache