In fact, if I set both VirtualHosts to point to:

DocumentRoot "D:/Apache/Apache/htdocs"

----------------
NameVirtualHost *

    <VirtualHost *>
    ServerName localhost
    DocumentRoot "D:/Apache/Apache/htdocs"
    </VirtualHost>

    <VirtualHost *>
    ServerName lh2
    DocumentRoot "D:/Apache/Apache/htdocs"
    </VirtualHost>
------------


the Cake app works fine when called via "http://localhost";, but
returns the above error when called via "http://lh2";.

So the folder name has nothing to do with it because the files are in
the same folder for both hosts.  It seems like Cake is using the
hostname somewhere... seems like anything other than "localhost" won't
work.  But I've found lots of examples on the web where other
hostnames work fine, so I'm confused.


(BTW, I've added both hostnames to my HOSTS file)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to