Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-10088

Website can manage hidden webapp

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Implemented
    • Trunk
    • 17.12.01
    • content, framework
    • None

    Description

      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.

      Attachments

        Activity

          People

            nmalin Nicolas Malin
            nmalin Nicolas Malin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: