Rename directive add_header -> more_set_header

This commit is contained in:
2023-11-10 17:23:27 +01:00
parent 939bb52523
commit c775aa2406
4 changed files with 19 additions and 30 deletions

View File

@@ -10,8 +10,8 @@ server {
server_name _;
add_header X-Dead-End true;
add_header Content-Type text/plain;
more_set_header 'X-Dead-End true';
more_set_header 'Content-Type text/plain';
return 200 ok;
}
@@ -24,8 +24,9 @@ server {
server_name _;
add_header X-Dead-End true;
add_header Content-Type text/plain;
more_set_header 'X-Dead-End true';
more_set_header 'Content-Type text/plain';
return 425 "SSL not supported here.";
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;