How To Map Domain To Module.

Hi, I’m a beginner in Yii. I’ve a problem about map Domain to Module.

I created Multiple Websites by using module as website.

This’s my Application Structure.




    ROOT

        -controllers

        -models

        -modules

            webapp

                website_a

                website_b

            webpanel

        -views



Webapp Module keep the Frontpage of Website and Webpanel module is Backend and I can call Frontpage of Website by use link like this

Afterthat I registed A new Domain to mapping with sub module of Frontpage such as

My new domain is: www.website_a.com

I’d like to map with module: www.myhost.com/webapp/website_a

Please help me how can do like this

Thanks.