Re: [users@httpd] Configuring two tomcat instances resolving to a directory on the same domain

2014-05-06 Thread Yehuda Katz
You should only need one vhost and it should look more like this:


ServerName example.com
ErrorLog /var/log/httpd/error.log
CustomLog /var/log/httpd/access.log combined

ProxyPass /first ajp://localhost:8009/
ProxyPassReverse /first ajp://localhost:8009/

ProxyPass /second ajp://localhost:8010/
ProxyPassReverse /second ajp://localhost:8010/




- Y


On Thu, May 1, 2014 at 6:02 PM, Fred Finn  wrote:

> Hi,
>
> I'm trying to setup my httpd.conf to allow one domain, with two
> directories to resolve to two different tomcat instances. But I've gotten a
> bit lost. Any guidance will be so appreciated!!
>
> www.example.com/first
>
> 
> ServerName example/first
> ErrorLog /var/log/httpd/first_error.log
> CustomLog /var/log/httpd/first_access.log combined
>
> 
> AddDefaultCharset off
> Order deny,allow
> Allow from all
> 
>
> ProxyPass / ajp://localhost:8009/
> ProxyPassReverse / ajp://localhost:8009/
> 
>
>
> www.example.com/second
>
> 
> ServerName example/second
> ErrorLog /var/log/httpd/second_error.log
> CustomLog /var/log/httpd/second_access.log combined
>
> 
> AddDefaultCharset off
> Order deny,allow
> Allow from all
> 
>
> ProxyPass / ajp://localhost:8010/
> ProxyPassReverse / ajp://localhost:8010/
> 
>


Re: [users@httpd] Configuring two tomcat instances resolving to a directory on the same domain

2014-05-06 Thread Fred Finn
Thank you!! I ended up getting this just 5 minutes ago, and then saw your
email!

Frederick Finn
http://www.fredfinn.com


On Tue, May 6, 2014 at 1:43 PM, Yehuda Katz  wrote:

> You should only need one vhost and it should look more like this:
>
> 
> ServerName example.com
> ErrorLog /var/log/httpd/error.log
> CustomLog /var/log/httpd/access.log combined
>
> ProxyPass /first ajp://localhost:8009/
> ProxyPassReverse /first ajp://localhost:8009/
>
> ProxyPass /second ajp://localhost:8010/
> ProxyPassReverse /second ajp://localhost:8010/
>
> 
>
>
> - Y
>
>
> On Thu, May 1, 2014 at 6:02 PM, Fred Finn  wrote:
>
>> Hi,
>>
>> I'm trying to setup my httpd.conf to allow one domain, with two
>> directories to resolve to two different tomcat instances. But I've gotten a
>> bit lost. Any guidance will be so appreciated!!
>>
>> www.example.com/first
>>
>> 
>> ServerName example/first
>> ErrorLog /var/log/httpd/first_error.log
>> CustomLog /var/log/httpd/first_access.log combined
>>
>> 
>> AddDefaultCharset off
>> Order deny,allow
>> Allow from all
>> 
>>
>> ProxyPass / ajp://localhost:8009/
>> ProxyPassReverse / ajp://localhost:8009/
>> 
>>
>>
>> www.example.com/second
>>
>> 
>> ServerName example/second
>> ErrorLog /var/log/httpd/second_error.log
>> CustomLog /var/log/httpd/second_access.log combined
>>
>> 
>> AddDefaultCharset off
>> Order deny,allow
>> Allow from all
>> 
>>
>> ProxyPass / ajp://localhost:8010/
>> ProxyPassReverse / ajp://localhost:8010/
>> 
>>
>
>