Welcome! Log In Create A New Profile

Advanced

Re: matching data within the host field of the header

May 02, 2009 01:24AM
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_name www.domain.com;
...
}

server {
server_name 192.168.1.1;
return 403;
}


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

matching data within the host field of the header

Payam Chychi May 01, 2009 03:55PM

Re: matching data within the host field of the header

Igor Sysoev May 02, 2009 01:24AM

Re: matching data within the host field of the header

Payam Chychi May 02, 2009 02:02AM

Re: matching data within the host field of the header

Igor Sysoev May 02, 2009 07:17AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 168
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