My recommendation is as follows. You build a handler in your core config file + the examples in the bakery to put together a setup that uses different database configurations per domain. The number 1 issue i see with this is getting your caching to work properly. Previously I did not see a way without extending/writing a caching engine that used the same/similiar domain based configuration to seperate out the caching per domain.
Hope that gives you some ideas. Travis-27 wrote: > > > Thanks for all the ideas, but I think everyone misunderstood my > question. > > I only want 1 app directory, running anywhere from 2 - 1000 websites. > That way if a bug is found in lets say a blogController, one source > code update is made, and all blogs are updated. > > > > On Jan 10, 3:28 pm, Robby Anderson <[EMAIL PROTECTED]> wrote: >> > This only works on hosts that allow you to point a (sub)domain to a >> > particular directory of your choice. I know some have their own >> generated >> > directories they use. Just thought I put that out there. >> >> If you wanthttp://www.app1.comto point to the www/app1 directory >> andhttp://www.app2.comto point to the www/app2 directory >> (orhttp://app1.example.com >> andhttp://app2.example.com), you are correct. >> >> But this setup works regardless domains/subdomains if you don't mind >> the URLhttp://www.example.com/app1/,http://www.example.com/app2/, >> etc. The webserver will just be looking for your app1/webroot/ >> index.php, which then loads the rest of the cake core based on the >> CAKE_CORE_INCLUDE_PATH constant. > > > > -- View this message in context: http://www.nabble.com/Using-1-cake-app-to-power-multiple-sites-tp14739287p14749297.html Sent from the CakePHP mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
