matching data within the host field of the header

Igor Sysoev is at
Sat May 2 09:24:30 MSD 2009

On Fri, May 01, 2009 at 12:55:15PM -0700, Payam Chychi wrote:

> I cant seem to get this working... im trying to look at the host field
> within the header and match it against an ip, if it a hit, I want to
> redirect to 403
> Normally there should be a domain set as the host, not ip...

I do not understan the question, but probably you need something like this:

server {

server {
    return 403;

Igor Sysoev

More information about the nginx mailing list