I've been having a stressing problem for the past days now..
I've been trying to make a virtual host on my machine (I have Windows 7 Professional) but I can't get it to work. Here is how I have it setup :
- Code: Select all
<Directory "F:\flash projects\gallery">
Options +Indexes +Includes +ExecCGI +FollowSymLinks
AllowOverride All
Order deny,allow
Allow from all
</Directory>
<VirtualHost *>
DocumentRoot "C:\xampp\htdocs"
ServerName localhost
</VirtualHost>
<VirtualHost *>
DocumentRoot "F:\flash projects\gallery"
ServerName gallery.local
</VirtualHost>
localhost works, but gallery.local doesn't. Now if I change them and say I put at "localhost" DocumentRoot this -> "F:\flash projects\gallery" it works. I have in
"c:\windows\system32\drivers\etc\hosts" and also in "c:\windows\system32\drivers\etc\lmhosts.sam"
127.0.0.1 gallery.local
I've putted it in lmhosts.sam because I read in some site that it needs to be there in order for me to be able to ping gallery.local, witch is true, if it's not there there's no ping to gallery.local.
But this dosen't make gallery.local load in browser.
For 3 days I've been trying to find a solution...
If anyone has an idea on why the hell won't it work, please help me!