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

    Redirect webGUI to https

    webGUI
    2
    5
    3.0k
    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.
    • V
      Velociraptor
      last edited by

      HI!
      i did change my webinterface to https which works well but i would also like to have a redirect of the http to the https like.

      http://forum.pfsense.org/index.php/topic,6215.msg35975.html
      http://forum.pfsense.org/index.php/topic,8999.msg50845.html

      wanted to do.
      After some research i found that the used webserver is lighttpd and as i know from apache there are some rewrite modules.
      So after some searching with an searchengine i found a solution on http://redmine.lighttpd.net/wiki/1/HowToRedirectHttpToHttps .

      As in the /etc/inc/system.inc is a if for the captive portal i thought perhabs someone could implement an checkbox under the https radiobutton? and implement the http redirect for the ip/hostname of the machine?

      Only problem for now i haven't come behind yet is, how to get lighttpd to listen on the 80 port and the 443 at the same time.

      Some hints perhabs?

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        This is done now out of the box on 2.0. You could look a the commit history and see how it was done, but as I recall it involved including an extra lighttpd module for redirect.

        Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • V
          Velociraptor
          last edited by

          @jimp:

          This is done now out of the box on 2.0. You could look a the commit history and see how it was done, but as I recall it involved including an extra lighttpd module for redirect.

          yes the redirect mod.
          would you have a link to the history?

          or when approx will the 2.0 be released?

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            The link to the binary would be useless since 2.0 uses a different version of lighttpd than 1.2.3. You'd have to find the source for the version used in 1.2.3 and compile it by hand.

            2.0 is still a long ways off. It's in beta now, but there are quite a few things that need fixing and testing before it will be release quality.

            Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • V
              Velociraptor
              last edited by

              thanks for the information:)
              after reading and researching i guess i will wait till 2.0 because with self compiling i haven't much experience

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