<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Nginx, Piwik, and Content Type Headers</title>
	<atom:link href="http://www.nodroidsallowed.com/2009/08/07/nginx-piwik-and-content-type-headers/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nodroidsallowed.com/2009/08/07/nginx-piwik-and-content-type-headers/</link>
	<description>Practical techniques for raising a well-adjusted database</description>
	<lastBuildDate>Tue, 17 Jan 2012 12:33:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: yang</title>
		<link>http://www.nodroidsallowed.com/2009/08/07/nginx-piwik-and-content-type-headers/comment-page-1/#comment-2494</link>
		<dc:creator>yang</dc:creator>
		<pubDate>Thu, 16 Dec 2010 06:56:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.nodroidsallowed.com/?p=88#comment-2494</guid>
		<description>I see you already figured it out - never mind!</description>
		<content:encoded><![CDATA[<p>I see you already figured it out &#8211; never mind!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yang</title>
		<link>http://www.nodroidsallowed.com/2009/08/07/nginx-piwik-and-content-type-headers/comment-page-1/#comment-2493</link>
		<dc:creator>yang</dc:creator>
		<pubDate>Thu, 16 Dec 2010 06:55:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.nodroidsallowed.com/?p=88#comment-2493</guid>
		<description>A better solution (which I&#039;m using) is to just forward the PHP requests to the backend and have nginx handle the static files.


    # Only push Piwik PHP to FPM backend                                        
    location ~* ^/piwik.*\.php$ {
      root /home/yang/piwik; # Set $document_root for FCGI params
      rewrite ^/piwik(.*) $1 break; # Trim off the /piwik prefix
      fastcgi_index index.php;
      fastcgi_pass 127.0.0.1:9000;
      fastcgi_param PATH_INFO $fastcgi_script_name;
      include /etc/nginx/fastcgi_params; # Default FCGI params
    }

    # Serve static files for Piwik
    location /piwik {
      alias /home/yang/piwik;
      index index.php; # Redirect / to the PHP
    }
</description>
		<content:encoded><![CDATA[<p>A better solution (which I&#8217;m using) is to just forward the PHP requests to the backend and have nginx handle the static files.</p>
<p>    # Only push Piwik PHP to FPM backend<br />
    location ~* ^/piwik.*\.php$ {<br />
      root /home/yang/piwik; # Set $document_root for FCGI params<br />
      rewrite ^/piwik(.*) $1 break; # Trim off the /piwik prefix<br />
      fastcgi_index index.php;<br />
      fastcgi_pass 127.0.0.1:9000;<br />
      fastcgi_param PATH_INFO $fastcgi_script_name;<br />
      include /etc/nginx/fastcgi_params; # Default FCGI params<br />
    }</p>
<p>    # Serve static files for Piwik<br />
    location /piwik {<br />
      alias /home/yang/piwik;<br />
      index index.php; # Redirect / to the PHP<br />
    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Update on nginx and Piwik &#124; No Droids Allowed</title>
		<link>http://www.nodroidsallowed.com/2009/08/07/nginx-piwik-and-content-type-headers/comment-page-1/#comment-1628</link>
		<dc:creator>Update on nginx and Piwik &#124; No Droids Allowed</dc:creator>
		<pubDate>Tue, 11 Aug 2009 15:16:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.nodroidsallowed.com/?p=88#comment-1628</guid>
		<description>[...] Nginx, Piwik, and Content Type Headers  [...]</description>
		<content:encoded><![CDATA[<p>[...] Nginx, Piwik, and Content Type Headers  [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.270 seconds -->

