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: Problems mapping UNC path to server
Author
EvilSupahFly



Joined: 18 Aug 2011
Posts: 15
Location: 44° 24' N / 79° 38' W

PostPosted: Mon 11 Jun '12 6:34    Post subject: Problems mapping UNC path to server Reply with quote

I'm running Apache 2.2 on XP, and the local paths are fine, but when I add UNC shares, everything falls apart. This is from my Application Log:

Code:
The Apache service reported the following error:
>> Syntax error on line 290 of C:/Apache2.2/conf/httpd.conf:
>>> <Directory "//server/project/"> path is invalid.


This is from my httpd.conf:
Code:
Alias /project/ //server/project/

<Directory "//server/project/">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>


I've tried playing musical chairs with the quotes and trailing slashes and nothing seems to be working, and it's REALLY starting to piss me off! Mad

Any thoughts or suggestions? Everything I've found on google says "use the UNC pathname, not the Win32 mapped share name!" which as you can see, I've done. I've also mapped //server/project/ to Z:/ and tried that with only abysmal failure too.
Back to top
EvilSupahFly



Joined: 18 Aug 2011
Posts: 15
Location: 44° 24' N / 79° 38' W

PostPosted: Mon 11 Jun '12 6:36    Post subject: Reply with quote

Incidentally, if I comment out the UNC maps, it works fine:

Code:
#Alias /project/ //server/project/

#<Directory "//server/project/">
#    Options Indexes MultiViews
#    AllowOverride None
#    Order allow,deny
#    Allow from all
#</Directory>
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Mon 11 Jun '12 22:17    Post subject: Reply with quote

Run the Apache service as a user not as SYSTEM which is the default. Said user has to be on the server as well as any other computers whose share/s you want to tap from.
Back to top
EvilSupahFly



Joined: 18 Aug 2011
Posts: 15
Location: 44° 24' N / 79° 38' W

PostPosted: Tue 12 Jun '12 2:44    Post subject: Reply with quote

Interesting. I'll let you know what happens.
Back to top
EvilSupahFly



Joined: 18 Aug 2011
Posts: 15
Location: 44° 24' N / 79° 38' W

PostPosted: Tue 12 Jun '12 2:55    Post subject: Reply with quote

It worked! Thanks!
Back to top


Reply to topic   Topic: Problems mapping UNC path to server View previous topic :: View next topic
Post new topic   Forum Index -> Apache