### make haproxy conf ``` # Send to gitea if location /gitea/ http-request redirect location /git/ if { path /git } use_backend gitea if { path_beg /git/ } backend gitea mode http # WARNING: due to limitations in the config parser, the characters ")","]", or "," are not allowed in any regular expression http-request set-path "%[path,regsub(^/git/,/)]" server gt-1 127.0.0.1:9081 ```