Search code examples
apachewampvirtual-hosts

Setting Up Apache Virtual Hosts on a Drive Other Than C:


I've successfully set up virtual hosts before on my C: drive, but now I want to set some up on my D: drive. I follow the setup instructions here, but when I click the WAMP icon to restart all services, the icon doesn't return to green.

Does anybody know what I need to do to get Virtual Hosts working on my D: drive? Thanks.


Solution

  • Believe it or not, it looks like all I had to do was put quotes around the directory path:

    <Directory "D:\Path\To\My\Directory">
        Order Deny,Allow  
        Allow from all
    </Directory>
    

    I have no earthly idea why that fixes this problem, but I'll take it.