Hi,   I am trying to use this example 
https://www.haproxy.com/de/blog/howto-write-apache-proxypass-rules-in-haproxy/  
but it seems a bit buggy, and the directives used are deprecated. Is it me or i 
a "server" directive missing in the example ?     What I am trying to 
transparently proxy :  front.my.domain/appalias -> 
appserver.my.domain:8080/full/path/app (specific port number) or 
front.my.domain/appalias -> appserver.my.domain:8080/ (app is located on root) 
or front.my.domain/appalias -> appserver.my.domain/full/path/app (no port 
number specified)     With the help of the configuration above and some other 
examples I have found, I got the following configuration directives :   frontend
...
acl my_front hdr(host) front.my.domain
acl path_app path -m beg /appalias
use_backend bk_myapp if my_front path_app
...

backend bk_myapp
http-request set-header Host appserver.my.domain
reqirep ^(GET|POST|HEAD)\ /appalias/(.*) \1\ /\2
acl hdr_location res.hdr(Location) -m found
rspirep ^Location:\ (https?://appserver.my.domain(:[0-9]+)?)?(/.*) Location:\ 
/appalias\3 if hdr_location
server www appserver.my.domain:8080/full/path/app   But of course, it is not 
working and I am also having hard time "translating" deprecated directives into 
new ones. I guess it may even require several different operations to replace a 
"reqirep" or "rspirep"   Thanks for any kind of help   Regards   

-------------------------------------------------------------------------------------------------
FreeMail powered by mail.fr

Reply via email to