mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 13:24:25 -07:00
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
This commit is contained in:
parent
fcea9ab012
commit
2e78f1e3c9
1 changed files with 3 additions and 0 deletions
|
@ -82,6 +82,9 @@ http {
|
|||
root /usr/local/vesta/web;
|
||||
charset utf-8;
|
||||
|
||||
// Fix error "The plain HTTP request was sent to HTTPS port"
|
||||
error_page 497 https://$host:$server_port$request_uri;
|
||||
|
||||
ssl on;
|
||||
ssl_certificate /usr/local/vesta/ssl/certificate.crt;
|
||||
ssl_certificate_key /usr/local/vesta/ssl/certificate.key;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue