I think I do this differently.
I add the virtual server to Apache as so.
<VirtualHost *>
ServerName www.yourdomain.local
DocumentRoot "C:/work/project1/www"
</VirtualHost>
<VirtualHost *>
ServerName project2.yourdomain.local
DocumentRoot "C:/work/project2/www"
</VirtualHost>
Then I add the line in my hosts file c:/windows/system32/drivers/etc/
hosts
127.0.0.1 www.yourdomain.local
127.0.0.1 project2.yourdomain.local
Now, when I access http://www.yourdomain.com I know I'm accessing the
external domain, but when I access http://www.yourdomain.local I know
I'm internal. The same with http://project2.yourdomain.com is
external, and http://project2.yourdomain.local is internal.
This is handy, because I have 5 registered domains that I'm working on
at once. I also have a beta server that is access at http://www.yourdomain.beta
by mapping it to an internal IP as 192.168.1.10 in the hosts file.
DNS is cool! :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---