<?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>CakePHP, CodeIgniter and Web Scaling &#187; server_names_hash_bucket_size: 32</title>
	<atom:link href="http://cisight.com/tag/server_names_hash_bucket_size-32/feed/" rel="self" type="application/rss+xml" />
	<link>http://cisight.com</link>
	<description>Yodiaditya web researcher on PHP, Ubuntu, Big data, Web scaling</description>
	<lastBuildDate>Mon, 04 Jun 2012 15:33:07 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
		<item>
		<title>Solving could should increase server_names_hash_bucket_size: 32 NGINX Ubuntu</title>
		<link>http://cisight.com/solving-could-should-increase-server_names_hash_bucket_size-32-nginx-ubuntu/</link>
		<comments>http://cisight.com/solving-could-should-increase-server_names_hash_bucket_size-32-nginx-ubuntu/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 10:54:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[configuration]]></category>
		<category><![CDATA[server_names_hash_bucket_size: 32]]></category>
		<category><![CDATA[solve server_names_hash_bucket_size: 32 nginx]]></category>

		<guid isPermaLink="false">http://cisight.com/?p=150</guid>
		<description><![CDATA[After I configure several sites that have a long names in NGINX virtualhost, I restart my NGINX and got this error : sudo service nginx restart Restarting nginx: nginx: [emerg] could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32 &#8230; <a href="http://cisight.com/solving-could-should-increase-server_names_hash_bucket_size-32-nginx-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After I configure several sites that have a long names in NGINX virtualhost, I restart my NGINX and got this error :</p>
<p><code><br />
sudo service nginx restart<br />
Restarting nginx: nginx: [emerg] could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32<br />
nginx: configuration file /etc/nginx/nginx.conf test failed<br />
</code></p>
<p>Well this is because my NGINX conf only limit server_name into 32 chars. We need to extend it by uncomment &#8220;server_names_hash_bucket_size 64;&#8221; in nginx.conf :</p>
<p>/etc/nginx/nginx.conf :<br />
<code><br />
http {<br />
     ....<br />
     server_names_hash_bucket_size 64;<br />
     # server_name_in_redirect off;</p>
<p>     ....<br />
}<br />
</code> </p>
<p>Problem solved! <img src='http://cisight.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://cisight.com/solving-could-should-increase-server_names_hash_bucket_size-32-nginx-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
