CakePHP 2.10.13 with shared webroot

Hey,

My ~/app/webroot/index.php directory index is shared with few domain names.

So, example these domains are use 1 CakePHP app.

In Controllers, I know how to use it, so it works, but I have a few questions:

  1. How to set the cache? Or not need specially cache config?
  2. How to use different sitemap.xml, favicon.ico etc files?
  3. Need any specially config?
  4. Any idea?

Thanks.

This completely depends on what your app is doing.

CakePHP is a MVC framework where you built the app you are trying to achieve. There is no “1 way” to do multi domain setup.

See e.g. Multiple domain, one core
you could also detect the domain in a custom middleware, set that attribute in the request object and do your domain specific logic dependent on that attribute.