Nicolas Malin created OFBIZ-10088:
-------------------------------------
Summary: Website can manage hidden webapp
Key: OFBIZ-10088
URL: https://issues.apache.org/jira/browse/OFBIZ-10088
Project: OFBiz
Issue Type: New Feature
Components: content, framework
Affects Versions: Trunk
Reporter: Nicolas Malin
Assignee: Nicolas Malin
Priority: Minor
Improve RequestHandler.makeLink code to manage url generation with surcharge
the webapp path.
When a websiteId is present and it have a webappPatch define, use it on the
link generation.
Example of use :
You have a httpd serveur that listen on *.mydomaine.com and define virtualHost
myEcommerce.mydomaine.com and myCatalog.mydomaine.com
myEcommerce.mydomaine.com is a reverse proxy to
myEcommerce.mydomaine.com/ecommerce
myCatalog.mydomaine.com is a reverse proxy to myEcommerce.mydomaine.com/catalog
Natively, all works fine with some parameters on web.xml and controller.xml but
each link return are setted like that myEcommerce.mydomaine.com/ecommerce,
called by apache httpd to ofbiz by
myEcommerce.mydomaine.com/ecommerce/ecommerce and traducted by ofbiz by ERROR
ecommerce request-map not found ;)
To solve the situation, I extended WebSite entity with attribute webappPath,
init to / for websiteId ecommerce ofbiz instance and /ecommerce for other
websiteId liked to other ofbiz instance (dev, back) without apache httpd with
limited reverse-proxy.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)