mapping Alias directories to network directories

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

mapping Alias directories to network directories

Postby magostoni » 04. June 2013 13:19

Hello,
I have a little question about Apache configuration.

I modified the httpconf file in this way; I added to the bottom of the file these lines:

Code: Select all
Alias /sources "C:/Users/miouser/Google Drive/CODE_REPOS"

<Directory "C:/Users/miouser/Google Drive/CODE_REPOS">
   Options Indexes FollowSymLinks Includes ExecCGI
   AllowOverride All
   Order allow,deny
   Allow from all
</Directory>


Then accessing http://localhost:8080/sources/ from browser it works fine:


Then I tried to make the same mapping a directory on a network drive:
Code: Select all
Alias /progetti "//Hp-proliant/c/Cad/Personalizzazioni/progetti"

<Directory "//Hp-proliant/c/Cad/Personalizzazioni/progetti">
   Options Indexes FollowSymLinks Includes ExecCGI
   AllowOverride All
   Order allow,deny
   Allow from all
</Directory>


But now trying to access to http://localhost:8080/progetti/ the browser waits for server response without success;

Is my idea possible or not? Did I missed something?


Thanks and regards,
Matt
magostoni
 
Posts: 1
Joined: 04. June 2013 13:11
Operating System: Windows 7

Re: mapping Alias directories to network directories

Postby Altrea » 04. June 2013 13:54

Hi magostoni,

magostoni wrote:
Code: Select all
Alias /progetti "//Hp-proliant/c/Cad/Personalizzazioni/progetti"

<Directory "//Hp-proliant/c/Cad/Personalizzazioni/progetti">
   Options Indexes FollowSymLinks Includes ExecCGI
   AllowOverride All
   Order allow,deny
   Allow from all
</Directory>

Is c the correct name for the share on that remote drive?
Is c accessible for the user apache is running with?

The default administrative share for drive c is hidden by a $, so it has to be c$ not only c.
Another solution: http://stackoverflow.com/questions/7431 ... rive-alias

best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8286
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 51 guests