<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.nginx.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.nginx.org/index.php?title=HttpUpstreamRequestHashModule&amp;feed=atom&amp;action=history</id>
		<title>HttpUpstreamRequestHashModule - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.nginx.org/index.php?title=HttpUpstreamRequestHashModule&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://wiki.nginx.org/index.php?title=HttpUpstreamRequestHashModule&amp;action=history"/>
		<updated>2013-05-24T00:19:17Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.0</generator>

	<entry>
		<id>http://wiki.nginx.org/index.php?title=HttpUpstreamRequestHashModule&amp;diff=2987&amp;oldid=prev</id>
		<title>Chrisbolt: Add link to github</title>
		<link rel="alternate" type="text/html" href="http://wiki.nginx.org/index.php?title=HttpUpstreamRequestHashModule&amp;diff=2987&amp;oldid=prev"/>
				<updated>2012-11-30T20:49:18Z</updated>
		
		<summary type="html">&lt;p&gt;Add link to github&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 20:49, 30 November 2012&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 37:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 37:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Installation ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Installation ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This module is not distributed with the Nginx source. You can download the request_hash module here: [[File:Nginx_upstream_hash-0.3.1.tar.gz]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This module is not distributed with the Nginx source. You can download the request_hash module &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;from [https://github.com/evanmiller/nginx_upstream_hash Github] or &lt;/ins&gt;here: [[File:Nginx_upstream_hash-0.3.1.tar.gz]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;After extracting, you will need to patch the latest Nginx source (0.7.62 as of this writing). Run patch like this:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;After extracting, you will need to patch the latest Nginx source (0.7.62 as of this writing). Run patch like this:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Chrisbolt</name></author>	</entry>

	<entry>
		<id>http://wiki.nginx.org/index.php?title=HttpUpstreamRequestHashModule&amp;diff=144&amp;oldid=prev</id>
		<title>MichaelLustfield: moved NginxHttpUpstreamRequestHashModule to HttpUpstreamRequestHashModule:&amp;#32;Removing Nginx prefix from page titles</title>
		<link rel="alternate" type="text/html" href="http://wiki.nginx.org/index.php?title=HttpUpstreamRequestHashModule&amp;diff=144&amp;oldid=prev"/>
				<updated>2010-09-22T19:28:08Z</updated>
		
		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/NginxHttpUpstreamRequestHashModule&quot; class=&quot;mw-redirect&quot; title=&quot;NginxHttpUpstreamRequestHashModule&quot;&gt;NginxHttpUpstreamRequestHashModule&lt;/a&gt; to &lt;a href=&quot;/HttpUpstreamRequestHashModule&quot; title=&quot;HttpUpstreamRequestHashModule&quot;&gt;HttpUpstreamRequestHashModule&lt;/a&gt;: Removing Nginx prefix from page titles&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= ngx_http_upstream_hash_module =&lt;br /&gt;
&lt;br /&gt;
''This module is not distributed with the Nginx source. Installation instructions are [[#Installation|Installation]] below.''&lt;br /&gt;
&lt;br /&gt;
The upstream_hash module provides simple upstream load distribution by hashing a configurable variable (e.g., the request URI, incoming HTTP headers, or some combination). Example usage:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;geshi lang=&amp;quot;nginx&amp;quot;&amp;gt;&lt;br /&gt;
upstream backend {&lt;br /&gt;
    server server1;&lt;br /&gt;
    server server2;&lt;br /&gt;
    hash   $request_uri;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/geshi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, Nginx will choose server1 or server2 by hashing the request URI ($request_uri).&lt;br /&gt;
&lt;br /&gt;
== Directives ==&lt;br /&gt;
&lt;br /&gt;
=== hash ===&lt;br /&gt;
'''syntax''' ''hash $variable''&lt;br /&gt;
&lt;br /&gt;
'''context''' ''upstream''&lt;br /&gt;
&lt;br /&gt;
Enables upstream hashing of $variable.&lt;br /&gt;
&lt;br /&gt;
When present, the &amp;quot;server&amp;quot; directives cannot take any arguments (&amp;quot;weight&amp;quot;, &amp;quot;max_fails&amp;quot;, etc.).&lt;br /&gt;
&lt;br /&gt;
=== hash_again ===&lt;br /&gt;
'''syntax''' ''hash_again number''&lt;br /&gt;
&lt;br /&gt;
'''default''' ''0''&lt;br /&gt;
&lt;br /&gt;
'''context''' ''upstream''&lt;br /&gt;
&lt;br /&gt;
Number of times to rehash the value and choose a different server if the backend connection fails. Increase this number to provide high availability.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
This module is not distributed with the Nginx source. You can download the request_hash module here: [[File:Nginx_upstream_hash-0.3.1.tar.gz]]&lt;br /&gt;
&lt;br /&gt;
After extracting, you will need to patch the latest Nginx source (0.7.62 as of this writing). Run patch like this:&lt;br /&gt;
&lt;br /&gt;
 cd nginx-0.7.62 # or whatever&lt;br /&gt;
 patch -p0 &amp;lt; /path/to/upstream/hash/directory/nginx.patch&lt;br /&gt;
&lt;br /&gt;
Then add the following option to your Nginx ./configure command:&lt;br /&gt;
&lt;br /&gt;
 --add-module=path/to/upstream/hash/directory&lt;br /&gt;
&lt;br /&gt;
Then &amp;quot;make&amp;quot; and &amp;quot;make install&amp;quot; as usual.&lt;br /&gt;
&lt;br /&gt;
== The hash algorithm ==&lt;br /&gt;
&lt;br /&gt;
As of 0.3, the hash algorithm and the failover algorithm use a CRC-32 computation compatible with PECL Memcache.&lt;br /&gt;
&lt;br /&gt;
== Changes ==&lt;br /&gt;
&lt;br /&gt;
: . * 0.3.1: Updated patch to work with latest Nginx sources&lt;br /&gt;
: . * 0.3: Feature: PECL Memcache compatibility. Change: Removed &amp;quot;hash_method&amp;quot; directive.&lt;br /&gt;
&lt;br /&gt;
== Bugs ==&lt;br /&gt;
&lt;br /&gt;
Send bug reports to [http://www.evanmiller.org/ Evan Miller] .&lt;/div&gt;</summary>
		<author><name>MichaelLustfield</name></author>	</entry>

	</feed>