Skip to content

Commit

Permalink
Add nginx option to redirect from http to https. (#348)
Browse files Browse the repository at this point in the history
Add nginx option to redirect from http to https
  • Loading branch information
gladk authored Dec 26, 2023
1 parent 38bec05 commit bbd7c6f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _documentation/webserver-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,9 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;
}
}
# Redirect HTTP to HTTPS, in case an invalid (plain HTTP) request was sent to port 443
error_page 497 https://$host:$server_port$request_uri;
}
```

Expand Down

0 comments on commit bbd7c6f

Please sign in to comment.