Herramientas de usuario

Herramientas del sitio


linux:web:apache.mod_proxy

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Próxima revisión
Revisión previa
linux:web:apache.mod_proxy [2020/06/26 17:53] – creado grillolinux:web:apache.mod_proxy [2024/10/09 12:57] (actual) – editor externo 127.0.0.1
Línea 13: Línea 13:
  
 One of the things you can do is indeed ping, according to the docs will check the backend before send any request. Consider of course the overhead that produces. One of the things you can do is indeed ping, according to the docs will check the backend before send any request. Consider of course the overhead that produces.
 +
 +## mod_proxy UTF-8
 +
 +agregar nocanon al ProxyPass para que no rompa los acentos en la URI
 +```
 +<Location "/tribunal-ws">
 +        Include /etc/apache2/MR/ws.rosario.gob.ar/tribunal-ws/accesos.conf
 +
 +        # agregar nocanon para que no rompa los acentos en la URI
 +        ProxyPass balancer://tcatws1_aworker/tribunal-ws nocanon
 +        ProxyPassReverse balancer://tcatws1_aworker/tribunal-ws
 +</Location>
 +```
  
  
Línea 33: Línea 46:
 </Proxy> </Proxy>
 ``` ```
 +
 +
 +## Deshabilitar urls
 +
 +Cómo evitar que haga proxypass de algunas rutas puntuales
 +```
 +ProxyPass /CHANGELOG.txt !
 +ProxyPass /INSTALL.mysql.txt !
 +ProxyPass /INSTALL.txt !
 +ProxyPass /LICENSE.txt !
 +ProxyPass /authorize.php !
 +ProxyPass /install.php !
 +ProxyPass /update.php !
 +ProxyPass / balancer://datos_hcluster/
 +ProxyPassReverse / balancer://datos_hcluster/
 +```
 +
 +Debe estar configurado `ProxyErrorOverride`
 +```
 +<IfModule mod_proxy.c>
 +        ProxyErrorOverride On
 +</IfModule>
 +```
 +
 +## Caducar cookies cuando un backend se cae
 +
 +nofailover: (Off) If set to On, the session will break if the worker is in error state or disabled. Set this value to On if backend servers do not support session replication. 
 +
 +```
 +ProxyPass "/special-area" "http://special.example.com" smax=5 max=10
 +ProxyPass "/" "balancer://mycluster/" stickysession=JSESSIONID|jsessionid nofailover=On
 +```
 +
 +
linux/web/apache.mod_proxy.1593194019.txt.gz · Última modificación: 2020/06/26 17:53 por grillo