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

Removing trailing slash and redirect to non-slash

$
0
0

@furkan wrote:

This is my configuration from haproxy.cfg

acl test-service path_beg /test

use_backend test-service if test-service

backend test-service
reqrep ^(.)/$\ /test(.) \1\ /\2
balance roundrobin
server manager01 127.0.0.1:7081

I want to remove trailing slash from my api url and also redirect all request to non-slash

Deserved api url:
-> blabla.com/test/abcd

Could you help me about it?
Best regards,

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4849

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>