Redirect webGUI to https
-
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.htmlwanted 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?
-
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.
-
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?
-
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.
-
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