<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Nginx on Justin Carmony</title>
		<link>https://www.justincarmony.com/tags/nginx/</link>
		<description>Recent content in Nginx on Justin Carmony</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Tue, 24 Apr 2012 05:34:57 +0000</lastBuildDate>
		
			<atom:link href="https://www.justincarmony.com/tags/nginx/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>PHP-FPM, Nginx, PHP_VALUE, and Multiple Values</title>
				<link>https://www.justincarmony.com/2012/04/24/php-fpm-nginx-php_value-and-multiple-values/</link>
				<pubDate>Tue, 24 Apr 2012 05:34:57 +0000</pubDate>
				<guid>https://www.justincarmony.com/2012/04/24/php-fpm-nginx-php_value-and-multiple-values/</guid>
				<description>&lt;p&gt;Quick little post on a problem I had while trying to use &lt;a href=&#34;http://phpadvent.org/2010/profiling-with-xhgui-by-paul-reinheimer&#34;&gt;XHGui&lt;/a&gt; with my Nginx/PHP-FPM setup. I needed to be able to pass the auto_prepend_file and auto_append_file settings to PHP-FPM from Nginx. In apache you can declare multiple php_value settings. However, when I did the same in nginx, it would only reflect the second setting. Turns out you need to set all of your php_value&amp;rsquo;s in Nginx in a single string, and you separate them by new line characters. Here is how it should look:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Debugging Nginx Configuration Trick</title>
				<link>https://www.justincarmony.com/2012/01/14/debugging-nginx-configuration-trick/</link>
				<pubDate>Sat, 14 Jan 2012 02:24:49 +0000</pubDate>
				<guid>https://www.justincarmony.com/2012/01/14/debugging-nginx-configuration-trick/</guid>
				<description>&lt;p&gt;Today I had an issue where I was trying to debug a problem with an &lt;a href=&#34;http://nginx.org/&#34;&gt;nginx&lt;/a&gt; configuration, I came up with a simple trick. One of the hardest parts of nginx configurations, especially with rewrites, is you might not know which &amp;ldquo;location&amp;rdquo; directive is not working as expected.&lt;/p&gt;&#xA;&lt;p&gt;In PHP, sometimes you would just add something like this:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-php&#34; data-lang=&#34;php&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;echo&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;I&amp;#39;m here!&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;exit&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;();&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;However, in Nginx configuration files, it isn&amp;rsquo;t as easy&amp;hellip;&lt;/p&gt;&#xA;&lt;p&gt;&amp;hellip; or is it?&lt;/p&gt;</description>
			</item>
			<item>
				<title>Setting Up Nginx &amp; PHP-FPM on Ubuntu 10.04</title>
				<link>https://www.justincarmony.com/2011/10/25/setting-up-nginx-php-fpm-on-ubuntu-10-04/</link>
				<pubDate>Tue, 25 Oct 2011 03:50:59 +0000</pubDate>
				<guid>https://www.justincarmony.com/2011/10/25/setting-up-nginx-php-fpm-on-ubuntu-10-04/</guid>
				<description>&lt;p&gt;This is another wonderful setup that I&amp;rsquo;ve found myself using rather than the traditional Apache &amp;amp; mod_php setup.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-is-nginx&#34;&gt;What is Nginx?&lt;/h2&gt;&#xA;&lt;p&gt;Nginx (pronounced engine-x) is a fast, powerful, lightweight web server. I won&amp;rsquo;t go into the theory under-the-hood, but it&amp;rsquo;s focus is high concurrency with low memory usage. So while Apache is more robust in supporting many different features, nginx focuses on handling the important features very quickly. I still use Apache internally for our SVN &amp;amp; Trac web server. Heck, even at this time I&amp;rsquo;m using Apache to host this blog. However, Dating DNA, Clipish, CEVO, Alienware Arena, and some other high traffic sites/apis use nginx.&lt;/p&gt;</description>
			</item>
			<item>
				<title>PHP, Nginx, and Output Flushing</title>
				<link>https://www.justincarmony.com/2011/01/25/php-nginx-and-output-flushing/</link>
				<pubDate>Tue, 25 Jan 2011 04:01:00 +0000</pubDate>
				<guid>https://www.justincarmony.com/2011/01/25/php-nginx-and-output-flushing/</guid>
				<description>&lt;p&gt;&lt;a href=&#34;https://www.justincarmony.com/images/wp/2011/01/nginx-logo.png&#34;&gt;&lt;img src=&#34;https://www.justincarmony.com/images/2011/01/nginx-logo-300x77.png&#34; alt=&#34;&#34; title=&#34;nginx-logo&#34;&gt;&lt;/a&gt;Alright, so one of the few hangups I&amp;rsquo;ve ran into with moving from &lt;a href=&#34;http://httpd.apache.org/&#34;&gt;Apache&lt;/a&gt; to &lt;a href=&#34;http://nginx.org/&#34;&gt;Nginx&lt;/a&gt; was output buffering. Now, we have a few administrative tools we use to perform large operations on our library and data. These scripts can take normally 3-5 minutes to run, and they output their progress and what step they are on as they run. The way they do this is after ever step in PHP I issue the same two commands:&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
