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

    All HTTP redirected to HTTPS after 2.2.4 upgrade

    Scheduled Pinned Locked Moved Cache/Proxy
    5 Posts 2 Posters 2.1k Views
    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.
    • J
      jbcrouigneau
      last edited by

      I use pfSense + Squid as reverse proxy to map one external IP (several subdomains) to several internal servers.
      Some are HTTP, some are HTTPS.
      It worked well until today.
      For now, all attempt to access HTTP sites automatically redirect to HTTPS. Can't figure why…

      Both Squid reverse HTTP and HTTPS are enabled.
      Some servers are configured on port 80 / protocol HTTP
      Others on port 443 / protocol HTTPS

      All servers have apache interface, listening only port 80 or port 443.

      Did I miss an option somewhere ?

      1 Reply Last reply Reply Quote 0
      • J
        jbcrouigneau
        last edited by

        Greatings,

        Any clue about what to check or how to diagnose this kind of behavior ?

        Best regards.

        1 Reply Last reply Reply Quote 0
        • J
          jbcrouigneau
          last edited by

          Finally, achieved to narrow my investigations:

          Got this page displaying during redirection:
          HTTP/1.1 301 Moved Permanently
          Location: https://www.xxxx.yyy/
          Content-Length: 0
          Date: Tue, 04 Aug 2015 14:07:15 GMT
          Server: lighttpd/1.4.35

          And found this in pfSense lighttpd config file:
          $SERVER["socket"] == ":80" {
          $HTTP["host"] =~ "(.)" {
          url.redirect = ( "^/(.
          )" => "https://%1/$1" )
          }
          }
          $SERVER["socket"] == "[::]:80" {
          $HTTP["host"] =~ "(.)" {
          url.redirect = ( "^/(.
          )" => "https://%1/$1" )
          }
          }

          But I don't want to have all the HTTP traffic redirected to HTTPS!
          I didn't find where this can be change in webConfigurator. Don't see any such rule in firewall or reverse proxy.
          Many thanks for any advice…

          1 Reply Last reply Reply Quote 0
          • D
            doktornotor Banned
            last edited by

            @jbcrouigneau:

            But I don't want to have all the HTTP traffic redirected to HTTPS!

            So disable it? SIGDUH!

            1 Reply Last reply Reply Quote 0
            • J
              jbcrouigneau
              last edited by

              It was there !
              Many thanks !

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