Welcome! Log In Create A New Profile

Advanced

Announcement : NGX_HTTP_SET_VAR_MODULE

Marcus Clyne
December 19, 2009 09:16AM
Hi,

As inspired by the previous comments about setting hash values to
variables, here's a small module that does just that.

Currently you can generate the MD5, SHA1 and Murmurhash2 values (in
uppercase hexadecimal) of a string, which can include variables.

There are three directives, which can be used anywhere in the http
configuration

usage :

location /hash {
set_md5 $md5_val $hash_string;
set_sha1 $sha1_val "some long string with a variable $var";
set_mm2 $murmurhash2_val "a static string hash";
}


download :

http://simpl.it/ngx/set_var/ngx_http_set_var_module-0.1.0.tar.gz


to do :

- documentation online (soon)
- other hashes (let me know if you have any specific ones you want added)
- url escaping


feedback :

If you have any comments (good/bad), or would like some specific
features, let me know.


Hope it's of use to some people.

Cheers,

Marcus.

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

Announcement : NGX_HTTP_SET_VAR_MODULE

Marcus Clyne December 19, 2009 09:16AM

Re: Announcement : NGX_HTTP_SET_VAR_MODULE

agentzh December 20, 2009 09:20PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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