Hello,
I am trying to get two webapps in the same ofbiz-component to have the same context but for different virtual-hosts. This is so you can have two webapps that are on the root context but have different hosts names. http://appa.com and http://appb.com The ofbiz we are using is based on 5.5.23 of tomcat Thanks in advance for any assistance. -Mark <webapp name="appA" title="App A" server="default-server" location="webapp/appa" mount-point="/"> <virtual-host host-name="appa.com"/> </webapp> <webapp name="appB" title="App B" server="default-server" location="webapp/appb" mount-point="/"> <virtual-host host-name="appb.com"/> <virtual-host host-name="www.appb.com"/> </webapp> like in tomcat you would do this I believe: <Host name="appa.com" appBase="webapps"> <Context path="" docBase="appa"/> <Logger className="org.apache.catalina.logger.FileLogger"/> </Host> <Host name="appb.com" appBase="webapps"> <Context path="" docBase="appb"/> <Logger className="org.apache.catalina.logger.FileLogger"/> </Host> |
take look at the ecommerce clone
Mark Gordon sent the following on 9/10/2008 3:13 PM: > Hello, > > I am trying to get two webapps in the same ofbiz-component to have the > same context but for different virtual-hosts. > > This is so you can have two webapps that are on the root context but > have different hosts names. > > http://appa.com and http://appb.com > > > The ofbiz we are using is based on 5.5.23 of tomcat > > Thanks in advance for any assistance. > > -Mark > > > <webapp name="appA" > title="App A" > server="default-server" > location="webapp/appa" > mount-point="/"> > <virtual-host host-name="appa.com"/> > </webapp> > > > <webapp name="appB" > title="App B" > server="default-server" > location="webapp/appb" > mount-point="/"> > <virtual-host host-name="appb.com"/> > <virtual-host host-name="www.appb.com"/> > </webapp> > > like in tomcat you would do this I believe: > > <Host name="appa.com" appBase="webapps"> > <Context path="" docBase="appa"/> > <Logger className="org.apache.catalina.logger.FileLogger"/> > </Host> > > <Host name="appb.com" appBase="webapps"> > <Context path="" docBase="appb"/> > <Logger className="org.apache.catalina.logger.FileLogger"/> > </Host> > > > |
the ecommerce and ecommerce clone have different mount points
ecommerce and ecomclone and no virtual hosts (unless I am looking in the wrong please). I am looking to have the same mount (/) point but different virtual hosts. Thanks, Mark On Wed, Sep 10, 2008 at 4:30 PM, BJ Freeman <[hidden email]> wrote: > take look at the ecommerce clone > > Mark Gordon sent the following on 9/10/2008 3:13 PM: >> Hello, >> >> I am trying to get two webapps in the same ofbiz-component to have the >> same context but for different virtual-hosts. >> >> This is so you can have two webapps that are on the root context but >> have different hosts names. >> >> http://appa.com and http://appb.com >> >> >> The ofbiz we are using is based on 5.5.23 of tomcat >> >> Thanks in advance for any assistance. >> >> -Mark >> >> >> <webapp name="appA" >> title="App A" >> server="default-server" >> location="webapp/appa" >> mount-point="/"> >> <virtual-host host-name="appa.com"/> >> </webapp> >> >> >> <webapp name="appB" >> title="App B" >> server="default-server" >> location="webapp/appb" >> mount-point="/"> >> <virtual-host host-name="appb.com"/> >> <virtual-host host-name="www.appb.com"/> >> </webapp> >> >> like in tomcat you would do this I believe: >> >> <Host name="appa.com" appBase="webapps"> >> <Context path="" docBase="appa"/> >> <Logger className="org.apache.catalina.logger.FileLogger"/> >> </Host> >> >> <Host name="appb.com" appBase="webapps"> >> <Context path="" docBase="appb"/> >> <Logger className="org.apache.catalina.logger.FileLogger"/> >> </Host> >> >> >> > > |
One way is to use the Apache web server virtual hosts. You can use
mod_ajp_prodxy or mod_jk Apache module to achieve what you want. Tomcat also support virtual hosts, but I am not sure how you can configure them in OFBiz. Thanks, Raj Mark Gordon wrote: > the ecommerce and ecommerce clone have different mount points > > ecommerce and ecomclone and no virtual hosts (unless I am looking in > the wrong please). > > I am looking to have the same mount (/) point but different virtual hosts. > > Thanks, > Mark > > On Wed, Sep 10, 2008 at 4:30 PM, BJ Freeman <[hidden email]> wrote: > >> take look at the ecommerce clone >> >> Mark Gordon sent the following on 9/10/2008 3:13 PM: >> >>> Hello, >>> >>> I am trying to get two webapps in the same ofbiz-component to have the >>> same context but for different virtual-hosts. >>> >>> This is so you can have two webapps that are on the root context but >>> have different hosts names. >>> >>> http://appa.com and http://appb.com >>> >>> >>> The ofbiz we are using is based on 5.5.23 of tomcat >>> >>> Thanks in advance for any assistance. >>> >>> -Mark >>> >>> >>> <webapp name="appA" >>> title="App A" >>> server="default-server" >>> location="webapp/appa" >>> mount-point="/"> >>> <virtual-host host-name="appa.com"/> >>> </webapp> >>> >>> >>> <webapp name="appB" >>> title="App B" >>> server="default-server" >>> location="webapp/appb" >>> mount-point="/"> >>> <virtual-host host-name="appb.com"/> >>> <virtual-host host-name="www.appb.com"/> >>> </webapp> >>> >>> like in tomcat you would do this I believe: >>> >>> <Host name="appa.com" appBase="webapps"> >>> <Context path="" docBase="appa"/> >>> <Logger className="org.apache.catalina.logger.FileLogger"/> >>> </Host> >>> >>> <Host name="appb.com" appBase="webapps"> >>> <Context path="" docBase="appb"/> >>> <Logger className="org.apache.catalina.logger.FileLogger"/> >>> </Host> >>> >>> >>> >>> >> > > |
In reply to this post by Mark Gordon-9
The trick is to use Apache httpd server as a front end.
with the JK connector. The ecommerce use the website entity. so when you set the website name used in the website entity in the web.xml you can have any URL access them.https://demo.hotwaxmedia.com/content/control/EditWebSite?webSiteId=WebStore and https://demo.hotwaxmedia.com/content/control/EditWebSite?webSiteId=WebStoreClone Mark Gordon sent the following on 9/10/2008 4:43 PM: > the ecommerce and ecommerce clone have different mount points > > ecommerce and ecomclone and no virtual hosts (unless I am looking in > the wrong please). > > I am looking to have the same mount (/) point but different virtual hosts. > > Thanks, > Mark > > On Wed, Sep 10, 2008 at 4:30 PM, BJ Freeman <[hidden email]> wrote: >> take look at the ecommerce clone >> >> Mark Gordon sent the following on 9/10/2008 3:13 PM: >>> Hello, >>> >>> I am trying to get two webapps in the same ofbiz-component to have the >>> same context but for different virtual-hosts. >>> >>> This is so you can have two webapps that are on the root context but >>> have different hosts names. >>> >>> http://appa.com and http://appb.com >>> >>> >>> The ofbiz we are using is based on 5.5.23 of tomcat >>> >>> Thanks in advance for any assistance. >>> >>> -Mark >>> >>> >>> <webapp name="appA" >>> title="App A" >>> server="default-server" >>> location="webapp/appa" >>> mount-point="/"> >>> <virtual-host host-name="appa.com"/> >>> </webapp> >>> >>> >>> <webapp name="appB" >>> title="App B" >>> server="default-server" >>> location="webapp/appb" >>> mount-point="/"> >>> <virtual-host host-name="appb.com"/> >>> <virtual-host host-name="www.appb.com"/> >>> </webapp> >>> >>> like in tomcat you would do this I believe: >>> >>> <Host name="appa.com" appBase="webapps"> >>> <Context path="" docBase="appa"/> >>> <Logger className="org.apache.catalina.logger.FileLogger"/> >>> </Host> >>> >>> <Host name="appb.com" appBase="webapps"> >>> <Context path="" docBase="appb"/> >>> <Logger className="org.apache.catalina.logger.FileLogger"/> >>> </Host> >>> >>> >>> >> > > > |
Administrator
|
In reply to this post by rajsaini
Mark,
Following Raj's suggestion, have a look at http://docs.ofbiz.org/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-Howtousemodproxyajp Jacques From: "Raj Saini" <[hidden email]> > One way is to use the Apache web server virtual hosts. You can use > mod_ajp_prodxy or mod_jk Apache module to achieve what you want. > > Tomcat also support virtual hosts, but I am not sure how you can > configure them in OFBiz. > > Thanks, > > Raj > > Mark Gordon wrote: >> the ecommerce and ecommerce clone have different mount points >> >> ecommerce and ecomclone and no virtual hosts (unless I am looking in >> the wrong please). >> >> I am looking to have the same mount (/) point but different virtual hosts. >> >> Thanks, >> Mark >> >> On Wed, Sep 10, 2008 at 4:30 PM, BJ Freeman <[hidden email]> wrote: >> >>> take look at the ecommerce clone >>> >>> Mark Gordon sent the following on 9/10/2008 3:13 PM: >>> >>>> Hello, >>>> >>>> I am trying to get two webapps in the same ofbiz-component to have the >>>> same context but for different virtual-hosts. >>>> >>>> This is so you can have two webapps that are on the root context but >>>> have different hosts names. >>>> >>>> http://appa.com and http://appb.com >>>> >>>> >>>> The ofbiz we are using is based on 5.5.23 of tomcat >>>> >>>> Thanks in advance for any assistance. >>>> >>>> -Mark >>>> >>>> >>>> <webapp name="appA" >>>> title="App A" >>>> server="default-server" >>>> location="webapp/appa" >>>> mount-point="/"> >>>> <virtual-host host-name="appa.com"/> >>>> </webapp> >>>> >>>> >>>> <webapp name="appB" >>>> title="App B" >>>> server="default-server" >>>> location="webapp/appb" >>>> mount-point="/"> >>>> <virtual-host host-name="appb.com"/> >>>> <virtual-host host-name="www.appb.com"/> >>>> </webapp> >>>> >>>> like in tomcat you would do this I believe: >>>> >>>> <Host name="appa.com" appBase="webapps"> >>>> <Context path="" docBase="appa"/> >>>> <Logger className="org.apache.catalina.logger.FileLogger"/> >>>> </Host> >>>> >>>> <Host name="appb.com" appBase="webapps"> >>>> <Context path="" docBase="appb"/> >>>> <Logger className="org.apache.catalina.logger.FileLogger"/> >>>> </Host> >>>> >>>> >>>> >>>> >>> >> >> > |
Free forum by Nabble | Edit this page |