<?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>compbrain.net &#187; nginx</title>
	<atom:link href="http://compbrain.net/archives/tag/nginx/feed" rel="self" type="application/rss+xml" />
	<link>http://compbrain.net</link>
	<description>A collection of occasional thoughts</description>
	<lastBuildDate>Fri, 09 Dec 2011 03:06:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Nginx PHP5 Fastcgi</title>
		<link>http://compbrain.net/archives/24</link>
		<comments>http://compbrain.net/archives/24#comments</comments>
		<pubDate>Fri, 31 Jul 2009 03:45:45 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[webserver]]></category>

		<guid isPermaLink="false">http://compbrain.net/?p=24</guid>
		<description><![CDATA[Quick note for myself and anyone else looking to replace lighttpd or apache2 with nginx for serving php (ala wordpress): http://frankkumro.com/2009/01/03/ubuntu-nginx-and-php5/]]></description>
			<content:encoded><![CDATA[<p>Quick note for myself and anyone else looking to replace lighttpd or apache2 with nginx for serving php (ala wordpress):<br />
<a href="http://frankkumro.com/2009/01/03/ubuntu-nginx-and-php5/">http://frankkumro.com/2009/01/03/ubuntu-nginx-and-php5/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://compbrain.net/archives/24/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx redirector</title>
		<link>http://compbrain.net/archives/8</link>
		<comments>http://compbrain.net/archives/8#comments</comments>
		<pubDate>Wed, 29 Jul 2009 02:16:57 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[school]]></category>
		<category><![CDATA[webserver]]></category>

		<guid isPermaLink="false">http://compbrain.net/?p=8</guid>
		<description><![CDATA[Today at school we finally fixed a nit that had been bothering me since about the time I arrived. For historical reasons our college mail server holds the A record for the college domain name. For &#8230; <a class="more-link" href="http://compbrain.net/archives/8">More<span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Today at school we finally fixed a nit that had been bothering me since about the time I arrived. For historical reasons our college mail server holds the A record for the college domain name. For that reason, attempts to access http://ccs.neu.edu instead of http://www.ccs.neu.edu ended up displaying an error page.</p>
<p>Since the primary purpose of the server in question is to handle e-mail, no webserver was installed. After stumbling upon<a href="http://aleksandarsavic.com/nginx-redirect-wwwexamplecom-requests-to-examplecom-or-vice-versa/"> http://aleksandarsavic.com/nginx-redirect-wwwexamplecom-requests-to-examplecom-or-vice-versa/</a> I whipped up a 6 line config for <a href="http://www.nginx.org">nginx</a>, and deployed it on the machine. nginx is lightweight enough to be installed specifically for this purpose without making a drastic impact on the machines other tasks.</p>
<p>Here is our config:<code><br />
## Redirector for ccs.neu.edu<br />
server {<br />
listen   80;<br />
server_name  ccs.neu.edu;<br />
access_log  /var/log/nginx/access.log;<br />
rewrite ^(.*) http://www.ccs.neu.edu$1 permanent;<br />
}<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://compbrain.net/archives/8/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

