Skip to content

Commit 2e78f1e

Browse files
committed
Fixed error when connecting to 8083 over HTTP
Fixed error "400 The plain HTTP request was sent to HTTPS port" By putting custom error page on http error coder 497 that redirects http uri to https uri
1 parent fcea9ab commit 2e78f1e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/rpm/conf/nginx.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ http {
8282
root /usr/local/vesta/web;
8383
charset utf-8;
8484

85+
// Fix error "The plain HTTP request was sent to HTTPS port"
86+
error_page 497 https://$host:$server_port$request_uri;
87+
8588
ssl on;
8689
ssl_certificate /usr/local/vesta/ssl/certificate.crt;
8790
ssl_certificate_key /usr/local/vesta/ssl/certificate.key;

0 commit comments

Comments
 (0)