Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Implemented
    • Affects Version/s: Trunk
    • Fix Version/s: 17.12.01
    • Component/s: content, framework
    • Labels:
      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

            • Assignee:
              soledad Nicolas Malin
              Reporter:
              soledad Nicolas Malin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: