Hello Atul,
I tried to find a solution. So i took the ofbiz-containers.xml file
under /framework/base/config in ofbiz11.0.4.
As i read in the documentation from Tomcat is must be possible to
define two "engine" objects and two "http-connector" objects.
I defined a "default-server" where default-host = 46.18.32.177
and a second "default-server2" where default-host = 46.18.32.178
I defined two http-connectors , one connected with parameter "address"
= 46.18.32.177 and a second one with parameter "address" =
46.18.32.178
The whole configuration in ofbiz-containers.xml was:
<property name="default-server" value="engine">
<property name="default-host" value="46.18.32.177"/>
<property name="jvm-route" value="jvm1"/>
<property name="access-log-pattern">
<property-value>%h %l %u %t "%r" %s %b "%{Referer}i"
"%{User-Agent}i"</property-value>
</property>
<property name="access-log-resolve" value="true"/>
<property name="access-log-rotate" value="true"/>
<property name="access-log-prefix" value="access_log."/>
<property name="access-log-dir" value="runtime/logs"/>
<property name="enable-request-dump" value="false"/>
<!-- uncomment for cluster support
<property name="default-server-cluster" value="cluster">
<property name="rep-valve-filter">
<property-value>.*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;.*\.png;.*\.css;.*\.ico;.*\.htc;</property-value>
</property>
<property name="manager-class"
value="org.apache.catalina.ha.session.DeltaManager"/>
<property name="debug" value="5"/>
<property name="replication-mode"
value="org.apache.catalina.tribes.transport.bio.PooledMultiSender"/>
<property name="tcp-listen-host" value="auto"/>
<property name="tcp-listen-port" value="4001"/>
<property name="tcp-sector-timeout" value="100"/>
<property name="tcp-thread-count" value="6"/>
<property name="mcast-bind-addr" value="192.168.2.1"/>
<property name="mcast-addr" value="228.0.0.4"/>
<property name="mcast-port" value="45564"/>
<property name="mcast-freq" value="500"/>
<property name="mcast-drop-time" value="3000"/>
</property>
-->
<!-- <property name="ssl-accelerator-port" value="8443"/> -->
<property name="enable-cross-subdomain-sessions" value="false"/>
</property>
<property name="default-server2" value="engine">
<property name="default-host" value="46.18.32.178"/>
<property name="jvm-route" value="jvm1"/>
<property name="access-log-pattern">
<property-value>%h %l %u %t "%r" %s %b "%{Referer}i"
"%{User-Agent}i"</property-value>
</property>
<property name="access-log-resolve" value="true"/>
<property name="access-log-rotate" value="true"/>
<property name="access-log-prefix" value="access_log."/>
<property name="access-log-dir" value="runtime/logs"/>
<property name="enable-request-dump" value="false"/>
<!-- uncomment for cluster support
<property name="default-server-cluster" value="cluster">
<property name="rep-valve-filter">
<property-value>.*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;.*\.png;.*\.css;.*\.ico;.*\.htc;</property-value>
</property>
<property name="manager-class"
value="org.apache.catalina.ha.session.DeltaManager"/>
<property name="debug" value="5"/>
<property name="replication-mode"
value="org.apache.catalina.tribes.transport.bio.PooledMultiSender"/>
<property name="tcp-listen-host" value="auto"/>
<property name="tcp-listen-port" value="4001"/>
<property name="tcp-sector-timeout" value="100"/>
<property name="tcp-thread-count" value="6"/>
<property name="mcast-bind-addr" value="192.168.2.1"/>
<property name="mcast-addr" value="228.0.0.4"/>
<property name="mcast-port" value="45564"/>
<property name="mcast-freq" value="500"/>
<property name="mcast-drop-time" value="3000"/>
</property>
-->
<!-- <property name="ssl-accelerator-port" value="8443"/> -->
<property name="enable-cross-subdomain-sessions" value="false"/>
</property>
<property name="http-connector" value="connector">
<!-- see
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/http.html for
reference -->
<property name="allowTrace" value="false"/>
<property name="emptySessionPath" value="false"/>
<property name="enableLookups" value="false"/>
<property name="maxPostSize" value="2097152"/>
<property name="protocol" value="HTTP/1.1"/>
<property name="proxyName" value=""/>
<property name="proxyPort" value=""/>
<property name="redirectPort" value=""/>
<property name="scheme" value="http"/>
<property name="secure" value="false"/>
<property name="URIEncoding" value="UTF-8"/>
<property name="useBodyEncodingForURI" value="false"/>
<property name="xpoweredBy" value="true"/>
<!-- HTTP connector attributes -->
<property name="acceptCount" value="10"/>
<property name="address" value="46.18.32.177"/>
<property name="bufferSize" value="2048"/>
<property name="compressableMimeType"
value="text/html,text/xml,text/plain"/>
<property name="compression" value="on"/>
<property name="connectionLinger" value="-1"/>
<property name="connectionTimeout" value="60000"/>
<property name="disableUploadTimeout" value="false"/>
<property name="maxHttpHeaderSize" value="4096"/>
<property name="maxKeepAliveRequests" value="100"/>
<property name="maxSpareThreads" value="50"/>
<property name="maxThreads" value="100"/>
<property name="minSpareThreads" value="4"/>
<property name="noCompressionUserAgents" value=""/>
<property name="port" value="80"/>
<property name="restrictedUserAgents" value=""/>
<property name="server" value=""/>
<property name="socketBuffer" value="9000"/>
<property name="strategy" value="lf"/>
<property name="tcpNoDelay" value="true"/>
<property name="threadPriority"
value="java.lang.Thread#NORM_PRIORITY"/>
</property>
<property name="http-connector" value="connector">
<!-- see
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/http.html for
reference -->
<property name="allowTrace" value="false"/>
<property name="emptySessionPath" value="false"/>
<property name="enableLookups" value="false"/>
<property name="maxPostSize" value="2097152"/>
<property name="protocol" value="HTTP/1.1"/>
<property name="proxyName" value=""/>
<property name="proxyPort" value=""/>
<property name="redirectPort" value=""/>
<property name="scheme" value="http"/>
<property name="secure" value="false"/>
<property name="URIEncoding" value="UTF-8"/>
<property name="useBodyEncodingForURI" value="false"/>
<property name="xpoweredBy" value="true"/>
<!-- HTTP connector attributes -->
<property name="acceptCount" value="10"/>
<property name="address" value="46.18.32.178"/>
<property name="bufferSize" value="2048"/>
<property name="compressableMimeType"
value="text/html,text/xml,text/plain"/>
<property name="compression" value="on"/>
<property name="connectionLinger" value="-1"/>
<property name="connectionTimeout" value="60000"/>
<property name="disableUploadTimeout" value="false"/>
<property name="maxHttpHeaderSize" value="4096"/>
<property name="maxKeepAliveRequests" value="100"/>
<property name="maxSpareThreads" value="50"/>
<property name="maxThreads" value="100"/>
<property name="minSpareThreads" value="4"/>
<property name="noCompressionUserAgents" value=""/>
<property name="port" value="80"/>
<property name="restrictedUserAgents" value=""/>
<property name="server" value=""/>
<property name="socketBuffer" value="9000"/>
<property name="strategy" value="lf"/>
<property name="tcpNoDelay" value="true"/>
<property name="threadPriority"
value="java.lang.Thread#NORM_PRIORITY"/>
</property>
However ofbiz seems not be programmed to be able to create two engine
objects and two http-connectors.
For tomcat it must however be possible , i think.
Someone any ideas?
Regards,
Eric
2013/4/26 Atul Vani <[email protected]>:
> If you do not want WebStoreClone to be accessible with the other ip address,
> then this is something that needs to be taken care at apache server level.
> If you think it's messy, then you can try some tricky code in ContextFilter
> of the webapp.
>
> An another way would be to point the domain to the mount point of the app,
> say http://example.com/webStoreClone
> However, with this you will not be able to open other backend apps (or there
> might exist some server level setting, if someone knows, please share).
>
> The settings you did will still be required to properly generate the URLs
> once inside the app.
>
>
>
> On Fri, 26 Apr 2013 14:49:34 +0530, Heidi Dehaes <[email protected]>
> wrote:
>
>> Hello,
>>
>> Thanks for your reply.
>>
>> I have two IP addresses available and configured in Debian Linux.
>>
>> In ofbiz 11.0.4 i have in the content / websites page configured the
>> following:
>>
>> - WebStoreClone with IP 46.18.32.177 and http port 80 with
>> productstore "Onlinekinderwinkel" with Theme "EC Default"..
>>
>> - OfbizSite with IP 46.18.32.178 and http port 80 with
>> productstore "Olagos" with theme "MultiFlex".
>>
>> However no difference appears if i take the one or the other ip
>> address in the browser.
>>
>> What do i miss?
>>
>> Regards,
>> Eric
>>
>>
>>
>> 2013/4/26 Atul Vani <[email protected]>:
>>>
>>> Didn't get your purpose but a small thing to do would be to have
>>> something
>>> like ecommerce clone app. Override only what needs to be changed and use
>>> a
>>> different theme. With this both sites can be kept on the same server.
>>>
>>> To have them on different servers, you can just use the same database by
>>> as
>>> mentioned by Jacques.
>>>
>>>
>>> On Tue, 23 Apr 2013 17:47:53 +0530, Heidi Dehaes <[email protected]>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> And i have to copy the ecommerce subdirectory with files to a second
>>>> mount point, i guess?
>>>>
>>>> Eric, Heidi
>>>>
>>>> 2013/4/23 Jacques Le Roux <[email protected]>:
>>>>>
>>>>>
>>>>> Hi Heidi,
>>>>>
>>>>> It's as easy as setting the entittyengine.xml fil to point to the same
>>>>> DB
>>>>>
>>>>> Jacques
>>>>>
>>>>> From: "Heidi Dehaes" <[email protected]>
>>>>>>
>>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> I have a ofbiz11.0.4 version on Debian Linux with one database.
>>>>>>
>>>>>> I want to know how to setup a second website (webshop) with the same
>>>>>> database only a different layout.
>>>>>>
>>>>>> I have a second IP address available.
>>>>>>
>>>>>> Regards,
>>>>>> Eric
>>>>>>
>>>>>> --
>>>>>> Olagos bvba
>>>>>> http://www.olagos.eu
>>>>>> http://www.olagos.com
>>>>>> http://www.olagos.be
>>>>>> http://www.olagos.nl
>>>>>> Olagos team
>>>>>> Kerkstraat 34
>>>>>> 2570 Duffel
>>>>>> Belgium
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Using Opera's revolutionary email client: http://www.opera.com/mail/
>>
>>
>>
>>
>
>
> --
> Using Opera's revolutionary email client: http://www.opera.com/mail/
--
Olagos bvba
http://www.olagos.eu
http://www.olagos.com
http://www.olagos.be
http://www.olagos.nl
Olagos team
Kerkstraat 34
2570 Duffel
Belgium