Two zend applications: one in a subdomain, one on root
I'm using Zend for my corporate website. This website contains two seperate applications, namely the website itself (which is a CMS) and the customer panel. The administration panel will开发者_如何学Python be launched on a subdomain, namely customer.domain.com. The website runs on a shared hosting package.
What would be the smartest configuration for this situation?
Thanks, Martijn
Create the admin panel as a module then use the Hostname router to direct the sub-domain requests to it.
I've choosen the following configuration. On domain-level I've created the application folder. This folder contains two folders, namely 'cms' and 'billings'. I've also created a ServerAlias so that the subdomain points to index.php. In index.php I use PHP's $_SERVER HTTP HOST to determine which application needs to be loaded.
精彩评论