Welcome! Log In Create A New Profile

Advanced

client sent plain HTTP request to HTTPS port while reading client request headers

basti
November 22, 2018 06:02AM
Hello,

after i switch my error log to info level (to find an other Problem) I
get a lot of messages like:

"client sent plain HTTP request to HTTPS port while reading client
request headers"

I search for a solution and always found that this error is shown when
http and https is in one server {} but my config looks like the
old-fashioned way.

server {
listen 443 ssl;
server_name your.site.tld;
ssl on;
...
}

server {
listen 80;
server_name your.site.tld;

return 301 https://your.site.tld$request_uri;
}

I have switch the order of hhtp and https server{}, the error is still
the same.

I have also try "error_page 497 https://$host:443$request_uri;", the
error is still the same.

I cant reproduce them, i have try to connect the site via http and also
via https and grep the log for my IP but I found nothing.
How can I fix that?

Best Regards,
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

client sent plain HTTP request to HTTPS port while reading client request headers

basti November 22, 2018 06:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 287
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready