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

Global mountpoint change for webapps (similarly to existing content.url.prefix)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Incomplete
    • None
    • None
    • framework
    • None
    • Bug Crush Event - 21/2/2015

    Description

      Currently settings in url.properties (content.url.prefix.secure and content.url.prefix.standard) allow to change url prefix for static content. Similar feature for mounting all webapps at a mount point different from root would be very useful. Especially it would help having multiple ofbiz instances under one domain name (e.g. www.host.com/client2 and www.host.com/client2), which is very useful to run several instances using one SSL certificate.
      Workaround is of course to change mount points in all components by hand, but it is not very practical if url is to be changed frequently.

      I suggest adding to url.properties 2 settings - webapp.url.prefix.standard and webapp.url.prefix.secure.

      This is not exact patch, just to give a quick idea of change necessary.

      --- ComponentConfig.java        Tue Jul 18 12:38:10 2006
      +++ ComponentConfig.java    Tue Jul 18 12:42:52 2006
      @@ -638,10 +638,12 @@
                           }
                           this.mountPoint = this.mountPoint + "*";
                       }
                   }
      
      +                       this.mountPoint = globalMountPoint + this.mountPoint; //globalMountPoint should be instantiated to value of webapp.url.prefix.standard, of course there should be additional code to parse that property
      +
                   // load the virtual hosts
                   List virtHostList = UtilXml.childElementList(element, "virtual-host");
                   if (virtHostList != null && virtHostList.size() > 0) {
                       Iterator elementIter = virtHostList.iterator();
                       while (elementIter.hasNext()) {
      

      Attachments

        Activity

          People

            jleroux Jacques Le Roux
            phaethon Eriks Dobelis
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: