NGINX - performance HTTP server Support Forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the Unofficial (YET) support forums for NGINX, a performance HTTP server.

Pages: [1]   Go Down

Author Topic: Nginx Security  (Read 1706 times)

0 Members and 1 Guest are viewing this topic.

DoGood

  • Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 1
    • View Profile
Nginx Security
« on: February 06, 2009, 01:49:21 PM »
Hi,

I want to deny particular IP (for example 121.246.250.25)
I tried in many ways, but still allowing to access my sit

I tried like this

location = / {
    deny   121.246.250.25
}

can any give solution ?

thanks
Logged

when2

  • Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 1
    • View Profile
Re: Nginx Security
« Reply #1 on: June 03, 2009, 04:34:09 PM »
Have u tried without putting '=' sign??

In my Configuration, i write

locate / {
    deny 10.14.200.0/24
}

And it's works
Logged
Pages: [1]   Go Up
« previous next »
 

Page created in 0.034 seconds with 20 queries.