Hi Kiran,

For sites which use a loadbalancer in front of ofbiz, Apache webserver is not required and the load balancer directly talks to the ofbiz 8080 port. Virtual host in ofbiz tomcat is then pretty useful and the system gets less complicated not using also a webserver. Concerning images, we normally use a CDN like Amazon Cloudfront so also here the webserver is not required.

But, sure you can apache webserver also for these tasks.

Regards,
Hans

On 11/22/2011 10:52 PM, ki...@objectedge.com wrote:
Hello Hans,

This link talks about using Virtual Host. But I believe, Nicolas question
is using Virtual Host in Apache Tomcat v/s Apache WebServer (Sitting in
front of Tomcat for serving images, etc).

I assume, there will be Proxy and/or Rewrite rules in WebServer that
forward request to Tomcat. So if we don't allow proxy for certain
application, user cannot reach the backend application, right?

Regards,
Kiran Gawde

Senior Software Architect
Object Edge Inc
(925) 943 5558 x108

"There are two kind of people: Those who do the work and those who take
the credit. Try to be in the first group because there is less competition
there."
"Never give up on what you really want to do. The person with big dreams
is more powerful than one with all the facts".




From:   Hans Bakker<mailingl...@antwebsystems.com>
To:     dev@ofbiz.apache.org
Cc:     Nicolas Malin<malin.nico...@librenberry.net>
Date:   11/22/2011 03:34 AM
Subject:        Re: svn commit: r1204920 -
/ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/CatalinaContainer.java



Hi Nicolas,

please check out our blog about this subject at our website:

http://www.antwebsystems.com/control/ViewBlogArticle?contentId=18704

Regards,
Hans

On 11/22/2011 06:23 PM, Nicolas Malin wrote:
Just for my information, what gain to use tomcat for virtal host
instead of apache ?

Le 22/11/2011 12:05, hans...@apache.org a écrit :
Author: hansbak
Date: Tue Nov 22 11:05:22 2011
New Revision: 1204920

URL: http://svn.apache.org/viewvc?rev=1204920&view=rev
Log:
problem with multiple virtual hosts in tomcat 7 contribution by
Chatree https://issues.apache.org/jira/browse/OFBIZ-4571

Modified:


ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/CatalinaContainer.java
Modified:

ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/CatalinaContainer.java
URL:

http://svn.apache.org/viewvc/ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/CatalinaContainer.java?rev=1204920&r1=1204919&r2=1204920&view=diff

==============================================================================

---

ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/CatalinaContainer.java

(original)
+++

ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/CatalinaContainer.java

Tue Nov 22 11:05:22 2011
@@ -291,6 +291,7 @@ public class CatalinaContainer implement
           // create a default virtual host; others will be created as
needed
           Host host = createHost(engine, hostName);
           hosts.put(engineName + "._DEFAULT", host);
+        engine.addChild(host);

           // configure clustering
           List<ContainerConfig.Container.Property>   clusterProps =
engineConfig.getPropertiesWithValue("cluster");
@@ -378,7 +379,6 @@ public class CatalinaContainer implement
           host.setBackgroundProcessorDelay(5);
           host.setAutoDeploy(false);
           host.setRealm(engine.getRealm());
-        engine.addChild(host);
           hosts.put(engine.getName() + hostName, host);

           return host;
@@ -580,6 +580,7 @@ public class CatalinaContainer implement

               if (newHost) {
                   hosts.put(engine.getName() + "." + hostName, host);
+                engine.addChild(host);
               }
           }







Reply via email to