Welcome! Log In Create A New Profile

Advanced

Where is the location of "if" statement?

Posted by hack3rcon 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Where is the location of "if" statement?
January 13, 2019 05:03AM
Hello.
I want to add below "if" statement:

if ($request_method !~ ^(GET|HEAD|POST)$ )
{
return 405;
}

But where is the location of it? Under "http"?

Thank you.

Online Users

Guests: 86
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready