Bimon
2012-09-06 3c3580ae6c7ddf7cc0615d118656b13a7fc233d7
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
1 files modified
5 ■■■■ changed files
install/tpl/nginx_ispconfig.vhost.master 5 ●●●● patch | view | raw | blame | history
install/tpl/nginx_ispconfig.vhost.master
@@ -1,8 +1,11 @@
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 _;