Apache service doesn't like aliases, what's going on?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Apache service doesn't like aliases, what's going on?

Postby Daen » 15. May 2006 18:13

I'm running XAMPP 1.5.2 and I'm having some strange problems trying to set up an alias for a mapped network drive.

Here's the relevant part of my httpd.conf file:

Code: Select all
Alias /blargh/ "C:/blargh/"

<Directory "C:/blargh">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

Alias /mediaFiles/ "X:/Evaluation & Measurement/English Certification Test/Student DATA/"

<Directory "X:/Evaluation & Measurement/English Certification Test/Student DATA">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>


The first one works just fine and that's on my local hard drive. The second one doesn't. If I remove the second <Directory> section, it'll start and run just fine, but I can't access the directory.

Apache service is set to log on with a username and password which has access to the network drive.

Now here's what's really weird: if I run apache through the command line, it runs just fine with both directories functioning as expected. It's when I try to run Apache through the XAMPP control panel that there are problems. If I do that, it simply starts then dies with no warning, no error log, no nothing.

So, is there something wrong with the syntax there or is it something else? I would really like to be able to start and stop Apache with the control panel rather than have to fight with the command line.

I really appreciate any help you can give me.
Daen
 
Posts: 5
Joined: 15. May 2006 17:48

Postby Wiedmann » 15. May 2006 18:30

Code: Select all
<Directory "X:/Evaluation & Measurement/English Certification Test/Student DATA">

Apache service is set to log on with a username and password which has access to the network drive.

Don't use maped drivenames in your config files. Only UNC names.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Daen » 15. May 2006 18:56

What exactly is a UNC name and how do I form the corresponding path?
Daen
 
Posts: 5
Joined: 15. May 2006 17:48

Postby Wiedmann » 15. May 2006 19:18

What exactly is a UNC name

//server/share/directory
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Daen » 15. May 2006 20:27

Does the directory I want to access have to be in the share directory itself, or would it work in another location?
Daen
 
Posts: 5
Joined: 15. May 2006 17:48

Postby Wiedmann » 15. May 2006 20:52

Hm, back to the windows basics...

"X:/Evaluation & Measurement/English Certification Test/Student DATA"

Here you have mapped the local drivename "X:" to e.g. a share "bar" at server "foo":
Code: Select all
net use X: \\foo\bar

(Or try only "net use" to see your active mappings)

Now you can access this path with "X:\...". But accessing this share with this path is only availible if you have an active mapping.

Using the UNC name works allways (even without a mapping):
Code: Select all
"//foo/bar/Evaluation & Measurement/English Certification Test/Student DATA"
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Daen » 15. May 2006 22:10

Thanks for your help.
Daen
 
Posts: 5
Joined: 15. May 2006 17:48


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 128 guests