Issue #1187 new

Permit custom handling of plain HTTP requests to HTTPS services

Paul McCann
created an issue

When a user accesses an HTTPS service with plain HTTP and raises a NoSSLError the following message is shown:

The client sent a plain HTTP request, but this server only speaks HTTPS on this port.

It should be possible to customize this message or redirect to another page (HTTPS or an error page).

I know most people deal with this by putting CherryPy behind Apache, but it's a simple and useful enough change I think it's reasonable to add it in. Maybe add a no_ssl_redirect property?

Comments (0)

  1. Log in to comment