Welcome! Log In Create A New Profile

Advanced

custom variables

John Joseph Bachir
September 10, 2010 12:26PM
Hey folks.

I can't find any information about setting custom variables in the config.
It seems to be possible, but is never mentioned in the documentation as far
as I can tell. For example, here:

http://gist.github.com/228769

There are two places where variables are used and referenced. A series of
statements like this:

ancient_browser msie 4.0;
ancient_browser msie 5.0;

Apparently compose an array that can be referenced like this:

if ($ancient_browser){ …

Then a statement like this:

set $unsupported_browser_rewrite perform;

Apparently can then be referenced like this:

if ($unsupported_browser_rewrite = perform)


Clearly the first case involves some specialized behavior regarding the
browser used by the request… but the grammar is really obtuse. Can someone
point me to the documentation that explains all this?

Thanks,
John
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

custom variables

John Joseph Bachir September 10, 2010 12:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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