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"
        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, Fax: 983 423271
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 list
[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

Reply via email to