<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>HostOnNet.com &#187; Nginx</title>
	<atom:link href="http://blog.hostonnet.com/category/nginx/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.hostonnet.com</link>
	<description>Windows, Linux, Ubuntu, Web Hosting</description>
	<lastBuildDate>Mon, 07 Jun 2010 08:14:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>could not build the server_names_hash, you should increase server_names_hash_bucket_size</title>
		<link>http://blog.hostonnet.com/could-not-build-the-server_names_hash-you-should-increase-server_names_hash_bucket_size</link>
		<comments>http://blog.hostonnet.com/could-not-build-the-server_names_hash-you-should-increase-server_names_hash_bucket_size#comments</comments>
		<pubDate>Fri, 19 Jun 2009 17:50:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Nginx]]></category>

		<guid isPermaLink="false">http://blog.hostonnet.com/?p=102</guid>
		<description><![CDATA[After adding a virtual host on nginx, i got following error on restart root@server70 &#91;/etc/init.d&#93;# service nginx restart 2009/06/19 12:22:17 &#91;emerg&#93; 4322#0: could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32 2009/06/19 12:22:17 &#91;emerg&#93; 4322#0: the configuration file /etc/nginx/nginx.conf test failed root@server70 &#91;/etc/init.d&#93;# Error is fixed by editing nginx.conf vi /etc/nginx/nginx.conf Find http &#123; [...]]]></description>
			<content:encoded><![CDATA[<p>After adding a virtual host on nginx, i got following error on restart</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>server70 <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># service nginx restart</span>
<span style="color: #000000;">2009</span><span style="color: #000000; font-weight: bold;">/</span>06<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">19</span> <span style="color: #000000;">12</span>:<span style="color: #000000;">22</span>:<span style="color: #000000;">17</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>emerg<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000;">4322</span><span style="color: #666666; font-style: italic;">#0: could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32</span>
<span style="color: #000000;">2009</span><span style="color: #000000; font-weight: bold;">/</span>06<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">19</span> <span style="color: #000000;">12</span>:<span style="color: #000000;">22</span>:<span style="color: #000000;">17</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>emerg<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000;">4322</span><span style="color: #666666; font-style: italic;">#0: the configuration file /etc/nginx/nginx.conf test failed</span>
root<span style="color: #000000; font-weight: bold;">@</span>server70 <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;">#</span></pre></div></div>

<p>Error is fixed by editing nginx.conf</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>nginx.conf</pre></div></div>

<p>Find</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">http <span style="color: #7a0874; font-weight: bold;">&#123;</span></pre></div></div>

<p>Add below</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">server_names_hash_bucket_size   <span style="color: #000000;">64</span>;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.hostonnet.com/could-not-build-the-server_names_hash-you-should-increase-server_names_hash_bucket_size/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
