Skip to content

Commit

Permalink
Close server_name_in_redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
CS-Tao committed Jul 5, 2018
1 parent 4e1d059 commit 589dc19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ events {
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
server_name_in_redirect off;
port_in_redirect off;

log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
Expand Down

0 comments on commit 589dc19

Please sign in to comment.