Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    HAProxy redirect custom http port to standard http port.

    Cache/Proxy
    1
    1
    1.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      c.zaborowski
      last edited by

      Hello to all,

      Http servers: 192.168.254.99:80, 192.168.254.100:8080

      pfSense 2.3.2 64bit with HAProxy: some.public.address

      What I want to do:

      • make http servers accesible on port 80 and make port 8080 automaticly redirected do port 80.

      So the problem is I used examples from HAProxy documentation: https://www.haproxy.com/doc/aloha/7.0/haproxy/http_rewriting.html

      Examples:

      Update each Host header to remove the colon and port, if any:

      http-request replace-value Host (.):. \1

      The example above turn the following string:

      Host: www.domain.com:80, static.domain.com:8080

      into the following one:

      Host: www.domain.com, static.domain.com

      And it is not working. I've checked config file and the entry looks exactly the same as in example.

      Does anybody has working http rewrite on pfSense 2.3 and can post it in here or better make some screenshots from pfSense?

      Thank You in advance,

      Best Regards.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.