[CentOS] Problems with ProxyPass to a local ip (using SSL)

Thu Mar 3 08:05:44 UTC 2016
C. L. Martinez <carlopmart at gmail.com>

On Tue  1.Mar'16 at 10:31:43 -0800, Gordon Messmer wrote:
> On 02/29/2016 05:19 AM, C. L. Martinez wrote:
> >But I am doing some mistakes because every time I'm receiving a loop error.
> ...
> ><VirtualHost 192.168.1.5:444>
> ...
> >	ProxyPass / http://192.168.1.5:5100/
> >	ProxyPassReverse / http://192.168.1.5:5100/
> >	RewriteEngine On
> >	RewriteRule ^/(.*) https://myweb01.local.domain:444/$1 [R,L]
> ></VirtualHost>
> >
> >  As you can see, I need to do a redirection to port 5100 from 444 port and protect it using ssl.
> 
> I think you need to figure out whether you want to proxy those requests or
> rewrite them.  You can't reasonably do both.
> 
> If you want to keep them SSL protected, then you don't need the rewrite rule
> at all.  Drop it.  Right now, you're redirecting clients to the same URL
> that they loaded to begin with, which is why your client is warning you
> about a loop.
> 
> 
Ok, problem solved. Finally, redirection needs to go to a tomcat server that use this commercial solution. Changing:

ProxyPass / http://192.168.1.5:5100/
ProxyPassReverse / http://192.168.1.5:5100/

to

ProxyPass / ajp://192.168.1.5:5100/
ProxyPassReverse / ajp://192.168.1.5:5100/

 ... problem solved.

Many thanks to all for your help.

-- 
Greetings,
C. L. Martinez