Commit 3c3580ae authored by Bimon's avatar Bimon
Browse files

avoid 400 bad request error if ssl is enabled and interface is accessed with...

avoid 400 bad request error if ssl is enabled and interface is accessed with http instead of https. Instead redirect to the requested page with https at the beginning of the URL.

According to FS#1982
parent 3a93f278
server {
listen {vhost_port};
ssl {ssl_on};
ssl {ssl_on};
{ssl_comment}ssl_certificate /usr/local/ispconfig/interface/ssl/ispserver.crt;
{ssl_comment}ssl_certificate_key /usr/local/ispconfig/interface/ssl/ispserver.key;
# redirect to https if accessed with http
{ssl_comment}error_page 497 https://$host:{vhost_port}$request_uri;
server_name _;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment