Navigation

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

    HAProxy redirect custom http port to standard http port.

    Cache/Proxy
    1
    1
    1188
    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

      Products

      • Platform Overview
      • TNSR
      • pfSense Plus
      • Appliances

      Services

      • Training
      • Professional Services

      Support

      • Subscription Plans
      • Contact Support
      • Product Lifecycle
      • Documentation

      News

      • Media Coverage
      • Press
      • Events

      Resources

      • Blog
      • FAQ
      • Find a Partner
      • Resource Library
      • Security Information

      Company

      • About Us
      • Careers
      • Partners
      • Contact Us
      • Legal
      Our Mission

      We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

      Subscribe to our Newsletter

      Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

      © 2021 Rubicon Communications, LLC | Privacy Policy