I'm not sure about your infraestructure but I think that in the second
service you don't need to specify any kind of url pattern, only backends.


2013/6/3 Jose Manuel Blanco <[email protected]>

>  OK
>
> Understood
>
> So in order to get the desired behavior I need to define TWO services:
>
> - The first service that ONLY do the redirection (using the "url pattern"
> and "redirect" fields) and with NO BACKEND servers
> - The second service that do the load balancing function using (using the
> "url pattern") with the backend servers
>
> Right?
>
>  ------------------------------
>
> * Jose Manuel Blanco Cortiñas
> Analista de Sistemas - Servicio de las Tecnologias de la Informacion y
> Comunicaciones (STIC)
> Universidad de Valladolid
> Edificio Alfonso VIII, C/Real de Burgos s/n. 47011, Valladolid - ESPAÑA
> Telefono: 983 18-6410, Fax: 983 423271
> E-mail: [email protected]
> *
> *
> ------------------------------
> *
> El 01/06/13 19:26, Emilio Campos escribió:
>
>  Redirect option sends a Location header to the client, and nothing to
> the backend, zen works like a load balancer not like a proxy.
>
>  In other words Zen doesn't MODIFY any kind of HTTP headers
>
>  Regards
>
>
> 2013/5/31 Jose Manuel Blanco <[email protected]>
>
>>  Hi.
>>
>> I don't understand what you want to say (no se si por tener el inglés o
>> por el "concepto" en si)...
>>
>> Anyway...
>> I think the "REDIRECT" option doesn't have the meaning I've expected
>> cause when I introduce some value, ZENLB FORCES me to indicate http or
>> https, that is: the value begins with "http://"; o "https://";, so
>> apparently requires a complete URL with the HOST component.
>> In other words: it appears to function more as a redirection to one
>> EXTERNAL service than a rewrite of the context part of the URL to be send
>> to the backend servers of the defined service.
>>
>>
>> An about the configuration...I paste the content of the PRUEBA_pound.cfg.
>> Some notes:
>> * Obviously I've "obfuscated" the IP address used
>> * ZENLB "offloads" the backends of the SSL layer, so the backends don't
>> use https but http
>> * Expected behavior:
>>     When client access:
>>         https://SERVICE_PUBLIC_IP/PUBLIC_CONTEXT*
>>     ZENLB should send to one of the backend the URL:
>>         http://BACKEND/PRIVATE_CONTEXT*
>>
>>
>> ######################################################################
>> ##GLOBAL OPTIONS
>> User        "root"
>> Group        "root"
>> ## allow PUT and DELETE also (by default only GET, POST and HEAD)?:
>> #ExtendedHTTP    0
>> ## Logging: (goes to syslog by default)
>> ##    0    no logging
>> ##    1    normal
>> ##    2    extended
>> ##    3    Apache-style (common log format)
>> #LogFacility    local5
>> LogLevel     0
>> ## check backend:
>> Timeout        45
>> Alive        10
>> Client        30
>> Control     "/tmp/PRUEBA_pound.socket"
>> #HTTP(S) LISTENERS
>> ListenHTTPS
>>     Err414 "/usr/local/zenloadbalancer/config/PRUEBA_Err414.html"
>>     Err500 "/usr/local/zenloadbalancer/config/PRUEBA_Err500.html"
>>     Err501 "/usr/local/zenloadbalancer/config/PRUEBA_Err501.html"
>>     Err503 "/usr/local/zenloadbalancer/config/PRUEBA_Err503.html"
>>     Address SERVICE_PUBLIC_IP
>>     Port 443
>>     xHTTP 1
>>     RewriteLocation 0
>>
>>     #Ciphers "TLSv1+SSLv3+HIGH:-MEDIUM:-LOW*:-ADH*"
>>     Cert "/usr/local/zenloadbalancer/config/MICERTIFICADO.pem"
>>     #ZWACL-INI
>>     Service "tramitador"
>>                 #HeadRequire "Host: "
>>         Url "/PUBLIC_CONTEXT"
>>         Redirect "http://PRIVATE_CONTEXT"; <http://PRIVATE_CONTEXT>
>>         Session
>>             Type IP
>>                         TTL 120
>> #                        #ID "sessionname""
>>         End
>>                 #BackEnd
>>         BackEnd
>>             Address BACKEND1_IP
>>             Port 8080
>>         End
>>         BackEnd
>>             Address BACKEND2_IP
>>             Port 8080
>>         End
>>                 #End
>>     End
>>     #ZWACL-END
>>     #Service "PRUEBA"
>>                 #HeadRequire "Host: "
>>                 #Url ""
>>                 #Redirect ""
>>                 #Session
>>                         #Type nothing
>>                         #TTL 120
>>                         #ID "sessionname"
>>                 #End
>>                 #BackEnd
>>                 #End
>>     #End
>> End
>> ######################################################################
>>
>> Regards.
>>  ------------------------------
>>
>> * Jose Manuel Blanco Cortiñas
>> Analista de Sistemas - Servicio de las Tecnologias de la Informacion y
>> Comunicaciones (STIC)
>> Universidad de Valladolid
>> Edificio Alfonso VIII, C/Real de Burgos s/n. 47011, Valladolid - ESPAÑA
>> Telefono: 983 18-6410 <983%2018-6410>, Fax: 983 423271 <983%20423271>
>> E-mail: [email protected]
>> *
>> *
>> ------------------------------
>> *
>>  El 31/05/13 09:39, Emilio Campos escribió:
>>
>>  paste your configuration here
>>
>>  THe service order has to be from more to less restrictive, it is said ,
>> your redirect and url pattern should be first than the default conf
>>
>>
>> 2013/5/31 Jose Manuel Blanco <[email protected]>
>>
>>>  Hi.
>>>
>>> We are trying to define some balanced services with the following
>>> specifications:
>>>
>>> PUBLIC URL: https://example.es:443/public_context
>>>
>>> BACKEND SERVERS:
>>>         http://ip.backend.1:8080
>>>         http://ip.backend.2:8080
>>>
>>> URL REWRITING:
>>>         public_context -> different/private/context
>>>
>>> Behaviour:
>>>
>>> When a client access the url:
>>>
>>>    https://example/public_context
>>>
>>> ZENLB must
>>>    1) manage the SSL layer to free the backend servers of that task --->
>>> OK
>>>    2) send the petition to one of the two backend servers ---> OK
>>>    3) rewrite the URL so the backend servers don't receive
>>> *****/public_context but *****/different/private/context ---> ?????
>>> Although tasks 1 and 2 are OK, apparently the last task don't.
>>>
>>> In the configuration I've used the service's options "URL PATTERN" and
>>> "REDIRECT", but they seem to not function as expected (at least the
>>> "REDIRECT" option).
>>>
>>> If ZENLB supports this...How can I configure it?
>>>
>>> If not...there is some plan to add ZENLB that feature?
>>>
>>> Regards.
>>>  --
>>> ------------------------------
>>>
>>> * Jose Manuel Blanco Cortiñas
>>> Analista de Sistemas - Servicio de las Tecnologias de la Informacion y
>>> Comunicaciones (STIC)
>>> Universidad de Valladolid
>>> Edificio Alfonso VIII, C/Real de Burgos s/n. 47011, Valladolid - ESPAÑA
>>> Telefono: 983 18-6410, Fax: 983 423271
>>> E-mail: [email protected]
>>> *
>>> *
>>> ------------------------------
>>> *
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Get 100% visibility into Java/.NET code with AppDynamics Lite
>>> It's a free troubleshooting tool designed for production
>>> Get down to code-level detail for bottlenecks, with <2% overhead.
>>> Download for free and get started troubleshooting in minutes.
>>> http://p.sf.net/sfu/appdyn_d2d_ap2
>>> _______________________________________________
>>> Zenloadbalancer-support mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/zenloadbalancer-support
>>>
>>>
>>
>>
>> --
>> Load balancer distribution - Open Source Project
>> http://www.zenloadbalancer.com
>> Distribution list (subscribe):
>> [email protected]
>>
>>
>> ------------------------------------------------------------------------------
>> Get 100% visibility into Java/.NET code with AppDynamics Lite
>> It's a free troubleshooting tool designed for production
>> Get down to code-level detail for bottlenecks, with <2% overhead.
>> Download for free and get started troubleshooting in 
>> minutes.http://p.sf.net/sfu/appdyn_d2d_ap2
>>
>>
>>
>> _______________________________________________
>> Zenloadbalancer-support mailing 
>> [email protected]https://lists.sourceforge.net/lists/listinfo/zenloadbalancer-support
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Get 100% visibility into Java/.NET code with AppDynamics Lite
>> It's a free troubleshooting tool designed for production
>> Get down to code-level detail for bottlenecks, with <2% overhead.
>> Download for free and get started troubleshooting in minutes.
>> http://p.sf.net/sfu/appdyn_d2d_ap2
>> _______________________________________________
>> Zenloadbalancer-support mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/zenloadbalancer-support
>>
>>
>
>
> --
> Load balancer distribution - Open Source Project
> http://www.zenloadbalancer.com
> Distribution list (subscribe):
> [email protected]
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite
> It's a free troubleshooting tool designed for production
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in 
> minutes.http://p.sf.net/sfu/appdyn_d2d_ap2
>
>
>
> _______________________________________________
> Zenloadbalancer-support mailing 
> [email protected]https://lists.sourceforge.net/lists/listinfo/zenloadbalancer-support
>
>
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite
> It's a free troubleshooting tool designed for production
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap2
> _______________________________________________
> Zenloadbalancer-support mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/zenloadbalancer-support
>
>


-- 
Load balancer distribution - Open Source Project
http://www.zenloadbalancer.com
Distribution list (subscribe): [email protected]

<<image/gif>>

<<escudo-uva.gif>>

<<image/gif>>

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Zenloadbalancer-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/zenloadbalancer-support

Reply via email to