Ticket #817 (new defect)

Opened 2 years ago

Last modified 1 year ago

LightTPD should give a helpful error message when HTTP is used to access an HTTPS port or simply redirect.

Reported by: xiaowen@rpath.com Assigned to: jan
Priority: normal Milestone:
Component: core Version: 1.4.11
Severity: normal Keywords:
Cc: Blocking:
Need Feedback:

Description

Now, when a user goes to http://host:port/ when the correct URL is https://host:port/, she simply gets a connection reset. LightTPD should be able to detect that HTTP was probably used where HTTPS was expected, and give an error message to that effect. Alternatively, it should be able to be configured to automatically redirect.

Apache2 gives an error message. See for example:

http://www.dresdner-private.de:443/

It says:

Bad Request

Your browser sent a request that this server could not understand. Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL, please.

Hint: https://www.dresdner-privat.de/

Attachments

Change History

08/22/2006 05:23:07 PM changed by xiaowen@rpath.com

There is a page on redirecting HTTP to HTTPS, but that only works if they use different ports: http://trac.lighttpd.net/trac/wiki/HowToRedirectHttpToHttps


Add/Change #817 (LightTPD should give a helpful error message when HTTP is used to access an HTTPS port or simply redirect.)




Change Properties