Re: [users@httpd] Apache Reverse Proxy SSL to TOMCAT no SSL

2021-06-01 Thread Yann Ylavic
Hi,

On Tue, Jun 1, 2021 at 5:24 PM Carlos Castro  wrote:
>
> 
> 
[]
> ProxyRequests On

You probably should remove the above line (which is not in the non-SSL
virtual host by the way).

Regards;
Yann.

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



[users@httpd] Apache Reverse Proxy SSL to TOMCAT no SSL

2021-06-01 Thread Carlos Castro
Hi all ,

I am trying to configure a reverse proxy apache with certificate and redirect 
to a tomcat without certificate.
The first question is to know if this is possible?

I am doing this configuration



ServerAdmin siste...@x.com
ServerName clientes.xx.com
ServerAlias clientes.xl.com
DocumentRoot /var/www/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ProxyPreserveHost On
ProxyPass /dpisaas-web  http://192.168.10.50:8080/dpisaas-web
ProxyPassReverse /dpisaas-web  http://192.168.10.50:8080/dpisaas-web





ServerAdmin siste...@x.com
ServerName clientes.xxx.com
ServerAlias clientes.xxx.com
SSLEngine on
SSLProxyEngine On
SSLCertificateFile /etc/ssl/xx.crt
SSLCertificateKeyFile /etc/ssl/x.com.key
SSLCertificateChainFile /etc/ssl/x-chain.crt
   DocumentRoot /var/www/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ProxyRequests On
ProxyPreserveHost On
ProxyPass /dpisaas-web  http://192.168.10.50:8080/dpisaas-web
ProxyPassReverse /dpisaas-web http://192.168.10.50:8080/dpisaas-web
ProxyPassReverseCookiePath /dpisaas-web /dpisaas-web




the first configuration (NO SSL) works correctly.

The second configuration (once the apache is configured to listen on port 8085 
for SSL requests) does not give me an error, it recognizes the SSL certificate, 
but it leaves the screen blank, it does not load the TOMCAT app.

Have you had a similar situation? Something is missing in the configuration?
Many Thanks!!





   Saludos


La informaci?n contenida en esta comunicaci?n est? destinada ?nicamente al uso 
de la persona o entidad a la que va dirigida y a otras personas autorizadas a 
recibirla. Puede contener informaci?n confidencial o legalmente privilegiada. 
Si usted no es el destinatario previsto, se le notifica que cualquier 
divulgaci?n, copia, distribuci?n o acci?n en base al contenido de esta 
informaci?n est? estrictamente prohibida y puede ser ilegal. Si ha recibido 
esta comunicaci?n por error, le rogamos que nos lo notifique inmediatamente 
respondiendo a este correo electr?nico y que lo borre de su sistema. Cad It 
Espa?a no se responsabiliza de la correcta y completa transmisi?n de la 
informaci?n contenida en esta comunicaci?n ni de cualquier retraso en su 
recepci?n.

The information contained in this communication is intended solely for the use 
of the individual or entity to whom it is addressed and others authorized to 
receive it. It may contain confidential or legally privileged information. If 
you are not the intended recipient you are hereby notified that any disclosure, 
copying, distribution or taking any action in reliance on the contents of this 
information is strictly prohibited and may be unlawful. If you have received 
this communication in error, please notify us immediately by responding to this 
email and then delete it from your system. Cad It Spain is neither liable for 
the proper and complete transmission of the information contained in this 
communication nor for any delay in its receipt.

[http://www.cadit.es/arbol.jpg] Para conservar el ambiente, por favor no 
imprima este correo electr?nico a no ser que sea absolutamente esencial.