You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Eriks Dobelis (JIRA)" <ji...@apache.org> on 2006/07/18 12:04:15 UTC

[jira] Created: (OFBIZ-94) Global mountpoint change for webapps (similarly to existing content.url.prefix)

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

                 Key: OFBIZ-94
                 URL: http://issues.apache.org/jira/browse/OFBIZ-94
             Project: OFBiz (The Open for Business Project)
          Issue Type: New Feature
          Components: framework
            Reporter: Eriks Dobelis
            Priority: Minor


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


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira