pfSense Support Subscription

Author Topic: HAProxy url Rewrite  (Read 105 times)

0 Members and 1 Guest are viewing this topic.

Offline soloam

  • Full Member
  • ***
  • Posts: 124
  • Karma: +1/-1
    • View Profile
HAProxy url Rewrite
« on: December 14, 2017, 09:42:38 am »
Hello I have a service running on https://192.168.1.20:4040/myservice and I would like to access it from https://myservice.myhome

I have it running so that I can route https://myservice.myhome to https://192.168.1.20:4040.

I have set a Frontend to https://myservice.myhome and a backend to 192.168.1.20:4040, so now I can access my service from https://myservice.myhome/myservice. Now I can't get ride of /myservice. I looked on the we and some people talk about reqrep so I tried a custum action on the FrontEnd reqrep ^([^\/]*)\/?(.*)  \1:4040/myservice/\2 but if I do this I have to replace the backend

No luck

Can any one help me?
Thank You

Offline soloam

  • Full Member
  • ***
  • Posts: 124
  • Karma: +1/-1
    • View Profile
Re: HAProxy url Rewrite
« Reply #1 on: December 14, 2017, 01:20:53 pm »
Forget about it... I solved it on the server side with VHost.

Thank You