Page 1 of 1

mapping Alias directories to network directories

PostPosted: 04. June 2013 13:19
by magostoni
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

Re: mapping Alias directories to network directories

PostPosted: 04. June 2013 13:54
by Altrea
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