How have different folders refering the same index.php?

the core files are at

C:\app\index.php

C:\app\protected

C:\app\assets

I am creating multiple sites accessing from different domains like

www.a.com

www.b.com

www.c.com

where a, b, c are individual folders in the same server

C:\app\site\a\index.php

C:\app\site\b\index.php

C:\app\site\c\index.php

inside each of this index.php, there is only 1 line, I include the main bootstrap

include("C:/app/index.php");

When I access www.a.com

it throws :

CAssetManager.basePath "C:\app\site\a\assets" is invalid. Please make sure the directory exists and is writable by the Web server process.

The message is correct because there is only one asset in the main core files. But I don’t want individuals asset folders in each sites…

how to refer to only the main asset folder from other folders/domains?

Thanks

anyone?

one module one site

or

config your server

apache virtual host

You mean I have to have protected & asset in all of the sites individually?

this is not achievable without virtual host?

In such a case,i think you have to use virtual host.AFAIK

What about setting CAssetManager.basePath to "C:\app\assets" irrespective of the calling folder?

Where and how should I assign CAssetManager.basePath to try if it works without virtual host?

In protected/config/main.php




'components'=>array(

  ...

  'assetManager'=>array(

    'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'assets',

  ),

  ...

),



/Tommy

Thanks! simple and exactly what i need…