# apache with windows mapped drive

OS is windows xp, apache is apache 2.2.

on my windows xp, i have a mapped driver, path is \dev3, under dev3 i have a folder www\project.

now i have added following virtual host to my local apache conf file.

ServerName project.localhost

DocumentRoot "\\dev3\www\project"
DirectoryIndex index.php

<Directory "\\dev3\www\project">
AllowOverride All
Allow from all
</Directory>


after restart the apache server, the apache gave me following warning: Warning: DocumentRoot [C:/dev3/www/project] does not exist.

my question is how can i make the apache to recognize my mapped drive

services can't just access mapped network drives that were mapped under your username. maybe you can set the apache service to run under your user account or somehow set up the local service account to access the mapped drive.

Check were you mapped the drive exactly. Windows does not now such a path like the one you're trying, so it's even a drive (C:, D:, E:, ...) or a folder on a Drive (D:\path\to\dev3\www...).

Bobby

i have found a solution, if i run apache from command line, it worked. but not from service.