mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 18:35:51 +02:00
Use redirect instead of rewrite for reverse proxy example
According to http://nginx.org/en/docs/http/converting_rewrite_rules.html this is the better way to implement redirects. It is easier to parse and understand.
This commit is contained in:
parent
6082aef5d5
commit
febd1e1107
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ server {
|
|||
listen [::]:80;
|
||||
|
||||
server_name <your_server_name>;
|
||||
rewrite ^(.*)$ https://$host$1 permanent;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
map $http_upgrade $connection_upgrade {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue