OFBiz
  1. OFBiz
  2. OFBIZ-94

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

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: framework
    • Labels:
      None

      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()) {

        Activity

        Eriks Dobelis created issue -
        Gavin made changes -
        Field Original Value New Value
        Workflow jira [ 12376312 ] OFbiz Workflow [ 12503977 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Eriks Dobelis
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development