Welcome! Log In Create A New Profile

Advanced

Test if a variable exists

Posted by double 
Test if a variable exists
October 30, 2011 01:39PM
Hello,

Is it possible to check if a variable exists, even empty?
e.g.
http://name.com/?hugo

NGINX:

if ($http_hugo) {
return 404;
}

Will return "false".

Thanks a lot
Markus
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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