Welcome! Log In Create A New Profile

Advanced

RE: How to prevent processing requests with undefined server names on nginx 1.1.17

March 26, 2012 12:16PM
Dear,

Thank you so much.

It's OK :) My proplem has been fixed.

Thank you,
Nguyen

-----Original Message-----
From: nginx-bounces@nginx.org [mailto:nginx-bounces@nginx.org] On Behalf Of
Antonio P.P. Almeida
Sent: Monday, March 26, 2012 6:44 PM
To: nginx@nginx.org
Subject: Re: How to prevent processing requests with undefined server names
on nginx 1.1.17

Try:

server {
listen [::]:80 default_server;
server_name _;
return 444;
}

You'll have to define *all valid* hosts in each server block.


--appa

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

How to prevent processing requests with undefined server names on nginx 1.1.17

hksvietnam March 26, 2012 07:34AM

Re: How to prevent processing requests with undefined server names on nginx 1.1.17

Antonio P.P. Almeida March 26, 2012 07:46AM

RE: How to prevent processing requests with undefined server names on nginx 1.1.17

hksvietnam March 26, 2012 12:16PM

Re: How to prevent processing requests with undefined server names on nginx 1.1.17

Alexander Kolesen March 26, 2012 07:50AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 231
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready