Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4718

Uri mapping not working

$
0
0

we have a request for the url sometingl like http://www.abc.com/thisis/theuri/ . I have the configuration set like this.
global
maxconn 10000
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
user hapee-lb
group hapee
chroot /var/empty
pidfile /var/run/hapee-"$HAPEE_VERSION"/hapee-lb.pid
stats socket /var/run/hapee-"$HAPEE_VERSION"/hapee-lb.sock user hapee-lb group hapee mode 660 level admin
stats timeout 10m
module-path /opt/hapee-"$HAPEE_VERSION"/modules
# NOTE: dh-param … a demander … 1024
# module-load hapee-lb-update.so
# module-load hapee-lb-sanitize.so
module-load hapee-lb-modsecurity.so
daemon
nbthread 4
cpu-map auto:1/1-4 0-3

ssl-default-bind-ciphersuites TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256

ssl-default-bind-ciphers <cipher-names>
ssl-default-bind-options ssl-min-ver TLSv1.2
tune.ssl.default-dh-param 2048

acl host_www-abc-com hdr_end(host) -i www.abc.com
acl uri_www-abc-com path_beg /thisis/theuri
use_backened www-abc-com if host_www-abc-com proto_HTTPS
backend www-abc-com
filter modsecurity modsec_logging rules-file /etc/hapee-"$HAPEE_VERSION"/modsec-global/cfg_logging.conf
balance leastconn
#h#ttp-request set-path / if { path / }
http-request set-path %[path,regsub(^/,/thisis/theuri)] if { path_beg / }
option httpclose
option forwardfor
#http-send-name-header host
server server1.xyz.com server1.xyz.com:443 check resolvers dnsSE-refresh resolve-prefer ipv4

From the status page we are able to see that haproxy is able to connect to backend server…

we load in browser - we get 502 bad gateway error.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4718

Trending Articles