On Sep 17, 2013, at 3:08 PM, Nicholas Violi <nvi...@globalgiving.org> wrote:

> On Tue, Sep 17, 2013 at 2:34 PM, Daniel Mikusa <dmik...@gopivotal.com>wrote:
> 
>> How do you have HTTPD configured?  It's important to get this right.
>> 
> 
> The tomcats are running on 8081 and 8083 and apache is listening on 8080
> and 8082, with each one proxied to the corresponding tomcat instance. I
> think these are the relevant parts of httpd.conf, but let me know if
> there's something else you want to see:
> Listen 8080
> Listen 8082
> [...]
> NameVirtualHost *:8080
> NameVirtualHost *:8082
> [...]
> <VirtualHost *:8080>
>    DocumentRoot /var/www/
>    ServerName local.mysite.com
>    ScriptAlias /cgi-bin/ /var/www/cgi-bin/
> 
>    [...]
>    ProxyPass        /dy               http://localhost:8081/dy max=100
>    ProxyPassReverse /dy               http://localhost:8081/dy max=100
> </VirtualHost>
> 
> <VirtualHost *:8082>
>    DocumentRoot /var/www/
>    ServerName local.mysite.com
>    ScriptAlias /cgi-bin/ /var/www/cgi-bin/
> 
>    [...]
>    ProxyPass        /dy               http://localhost:8083/dy max=100
>    ProxyPassReverse /dy               http://localhost:8083/dy max=100
> </VirtualHost>

What is your purpose with this configuration and with this setup?  It's a legit 
setup, but may not be doing what you want.

Typically you would use mod_proxy & mod_proxy_balancer (or mod_jk) to front a 
cluster of Tomcat servers.  Something like this should balance load across the 
two nodes in your cluster with mod_proxy.

<Proxy balancer://mycluster>
    BalancerMember http://localhost:8081
    BalancerMember http://localhost:8083
</Proxy>

ProxyPass /dy balancer://mycluster/dy

Dan


> 
> Thanks,
> Nick


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to