0
我有一個應用程序與多個模塊。 每個模塊都是一個不同的網站。
我想指出每個模塊具有不同的主機/域/子域名。
是否有可能這樣做?
如果是的話該怎麼做?
如何將不同的域指向不同的模塊?
我有一個應用程序與多個模塊。 每個模塊都是一個不同的網站。
我想指出每個模塊具有不同的主機/域/子域名。
是否有可能這樣做?
如果是的話該怎麼做?
如何將不同的域指向不同的模塊?
我已經找到解決方案
[routes]
;; Domain config
routes.site1.type = "Zend_Controller_Router_Route_Hostname"
routes.site1.abstract = true
routes.site1.route = "site1.localhost"
routes.site1.defaults.module = "default"
routes.site2.type = "Zend_Controller_Router_Route_Hostname"
routes.site2.abstract = true
routes.site2.route = "site2.localhost"
routes.site2.defaults.module = "default2"
;; Home Page
routes.inicial.type = "Zend_Controller_Router_Route"
routes.inicial.abstract = true
routes.inicial.route = "inicio"
routes.inicial.defaults.controller = index
routes.inicial.defaults.action = index
routes.site1-inicial.type = "Zend_Controller_Router_Route_Chain"
routes.site1-inicial.chain = "site1,inicial"
routes.site2-inicial.type = "Zend_Controller_Router_Route_Chain"
routes.site2-inicial.chain = "site2,inicial"
在不同端口上運行的模塊? – dpk2442
請參閱http://stackoverflow.com/a/5282922/131824 –
所有內容都託管在godaddy.com上的單個服務器上 –