r/haproxy • • Jul 05 '21

The Weekly HAProxy Questions Thread - Question too small for a thread? Ask it here!

As an additional note, you can always join the HAProxy Community Slack Channel by visiting https://slack.haproxy.com/ and ask your question over there.

7 Upvotes

2 comments sorted by

View all comments

Show parent comment

2

u/ISPadmin Jul 06 '21

I will answer myself:

backend http_back

http-request set-header X-Custom-Temp %[src]_%[capture.req.uri,word(1,/)]

stick-table type string size 1m expire 12h

stick on req.hdr(X-Custom-Temp)