1

I have a folder on a network drive (X:/) and my WAMP is on C:/. I use WAMPS 'Add an alias' tool and point /bymnew/ to X:/Brief Your Market Integration/data/website. The alias is created and looks like this:

Alias /bymnew/ "x:/Brief Your Market Integration/data/website/" 

<Directory "x:/Brief Your Market Integration/data/website/">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
        Order allow,deny
    Allow from all
</Directory>

I have also tried it with the server path:

Alias /bymnew/ "\\jacklogic2\projects\Brief Your Market Integration\data\website" 

<Directory "\\jacklogic2\projects\Brief Your Market Integration\data\website">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
        Order allow,deny
    Allow from all
</Directory>

However, this just causes Apache to not start. It only seems to happen on folders in X:/, as a few folders are already aliased to C:/

rickyduck
  • 139
  • 1
  • 2
  • 9

3 Answers3

2

Mapped drives are per-user; your SYSTEM user doesn't see the same drives as the user that you're running as.

Try creating a new user (a service account) with the rights needed to run the Apache service, and set up the mapped drive under that user.

Shane Madden
  • 114,520
  • 13
  • 181
  • 251
0
Alias /music "X:\Backups\Folders-Files\iTunes\iTunes Music\Music"
<Directory "X:\Backups\Folders-Files\iTunes\iTunes Music\Music">
  Options +Indexes
  AllowOverride All
  Order allow,deny
  Allow from all
</Directory>

Consider using \'s not /'s

And don't add a trailing / to the alias.

U4iK_HaZe
  • 633
  • 5
  • 13
0

You should use forwardslashes or escape any backslashes. You should use the UNC path or make sure the network drive is mapped in the user account used to run the apache service as per the answer by Shane Madden. So:

Alias /bymnew/ "//jacklogic2/projects/Brief Your Market Integration/data/website/" 

<Directory "//jacklogic2/projects/Brief Your Market Integration/data/website/">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
        Order allow,deny
    Allow from all
</Directory>

Tip: If you delete the trailing slash from 'Alias /bymnew/' to become 'Alias /bymnew' you can use http://localhost/bymnew instead of http://localhost/bymnew/ to access your aliased directory.

Caltor
  • 121
  • 5