<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Anil Jangity's Blog</title>
	<atom:link href="http://anilj.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://anilj.wordpress.com</link>
	<description>Entic.net, LDAP, Pylons, v.Dedicated Servers, and more.</description>
	<lastBuildDate>Mon, 09 Apr 2007 01:41:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='anilj.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Anil Jangity's Blog</title>
		<link>http://anilj.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://anilj.wordpress.com/osd.xml" title="Anil Jangity&#039;s Blog" />
	<atom:link rel='hub' href='http://anilj.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Pylons + lighttpd + SCGI</title>
		<link>http://anilj.wordpress.com/2007/02/23/pylons-lighttpd-scgi/</link>
		<comments>http://anilj.wordpress.com/2007/02/23/pylons-lighttpd-scgi/#comments</comments>
		<pubDate>Fri, 23 Feb 2007 04:58:00 +0000</pubDate>
		<dc:creator>Anil</dc:creator>
				<category><![CDATA[Pylons]]></category>

		<guid isPermaLink="false">http://anilj.wordpress.com/2007/02/23/pylons-lighttpd-scgi/</guid>
		<description><![CDATA[Pylons is a raid web development framework, based on Rails for the Python language. Our website and applications are rendered in this framework. Here is a simplistic example of how to deploy your Pylons app using lighttpd 1.4 and SCGI. You need to have flup and scgi installed before proceding, use easy_install to do this. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anilj.wordpress.com&amp;blog=808710&amp;post=4&amp;subd=anilj&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://pylonshq.com" target="_blank">Pylons</a> is a raid web development framework, based on Rails for the <a href="http://www.python.org" target="_blank">Python</a> language. Our website and applications are rendered in this framework.</p>
<p>Here is a simplistic example of how to deploy your Pylons app using lighttpd 1.4 and SCGI. You need to have <a href="http://trac.saddi.com/flup" target="_blank">flup</a> and <a href="http://python.ca/scgi/" target="_blank">scgi</a> installed before proceding, use easy_install to do this.</p>
<p>The <strong>lighttpd.conf</strong> file:</p>
<blockquote><p># lighttpd configuration file<br />
#</p>
<p># default document-root<br />
server.document-root = &#8220;/opt/Entic/entic&#8221;</p>
<p># selecting modules<br />
server.modules = ( &#8220;mod_scgi&#8221;, &#8220;mod_accesslog&#8221; )</p>
<p># where to send error messages to<br />
server.errorlog = &#8220;/var/log/lighttpd.error.log&#8221;</p>
<p># accesslog module<br />
accesslog.filename = &#8220;/var/log/lighttpd.access.log&#8221;</p>
<p>#### scgi module<br />
scgi.server = ( &#8220;/&#8221; =&gt;<br />
(</p>
<blockquote><p> &#8220;192.168.2.132&#8243; =&gt; (<br />
&#8220;host&#8221; =&gt; &#8220;127.0.0.1&#8243;,<br />
&#8220;port&#8221; =&gt; 4000,<br />
&#8220;min-procs&#8221; =&gt; 1,<br />
&#8220;max-procs&#8221; =&gt; 2,<br />
&#8220;check-local&#8221; =&gt; &#8220;disable&#8221;)</p></blockquote>
<p>))</p></blockquote>
<p>The Pylons configuration file, <strong>production.ini</strong>:</p>
<blockquote><p><strong>[server:main]<br />
use = egg:Paste#http</strong></p>
<p><strong>#Use SCGI threaded<br />
[server:main]<br />
use = egg:PasteScript#flup_scgi_thread<br />
host = 127.0.0.1<br />
port = 4000</strong></p></blockquote>
<p>Thats it! Now start up the servers. Lighttpd runs on port 80, where visitors connect to, where it communicates with the 127.0.0.1:4000 Pylons application.</p>
<blockquote><p> # /usr/local/sbin/lighttpd -f /usr/local/etc/lighttpd.conf<br />
# paster serve production.ini</p></blockquote>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/anilj.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/anilj.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anilj.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anilj.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anilj.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anilj.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anilj.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anilj.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anilj.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anilj.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anilj.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anilj.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anilj.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anilj.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anilj.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anilj.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anilj.wordpress.com&amp;blog=808710&amp;post=4&amp;subd=anilj&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anilj.wordpress.com/2007/02/23/pylons-lighttpd-scgi/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d281c2a2b1e44d024299d4ba69df34d?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Anil</media:title>
		</media:content>
	</item>
	</channel>
</rss>
