<?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>OSBlues &#187; Ruby on Rails</title>
	<atom:link href="http://osblues.com/category/ruby-on-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://osblues.com</link>
	<description>Life, technology and anything else that crops up..</description>
	<lastBuildDate>Tue, 14 Jun 2011 14:28:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='osblues.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>OSBlues &#187; Ruby on Rails</title>
		<link>http://osblues.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://osblues.com/osd.xml" title="OSBlues" />
	<atom:link rel='hub' href='http://osblues.com/?pushpress=hub'/>
		<item>
		<title>Ruby on Rails on Arch Linux with Mongrel and Apache</title>
		<link>http://osblues.com/2006/07/20/ruby-on-rails-on-arch-linux-with-mongrel-and-apache/</link>
		<comments>http://osblues.com/2006/07/20/ruby-on-rails-on-arch-linux-with-mongrel-and-apache/#comments</comments>
		<pubDate>Thu, 20 Jul 2006 10:23:39 +0000</pubDate>
		<dc:creator>osblues</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://www.osblues.com/2006/07/20/ruby-on-rails-on-arch-linux/</guid>
		<description><![CDATA[I&#8217;ve spent the last week or so trying to get a Ruby on Rails up and running on my Arch Linux box. I was determined to get something &#8216;better&#8217; than WEBrick running to allow me to have production(ish) environment. I also wanted to achieve side by side with LAMP configuration I&#8217;m running to serve this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=osblues.com&amp;blog=3608927&amp;post=63&amp;subd=osblues&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve spent the last week or so trying to get a <a target="_blank" href="http://www.rubyonrails.org">Ruby on Rails</a> up and running on my Arch Linux box.  I was determined to get something &#8216;better&#8217; than WEBrick running to allow me to have production(ish) environment.  I also wanted to achieve side by side with LAMP configuration I&#8217;m running to serve this (wordpress) blog.</p>
<p>I started off looking at using Apache with mod_fastcgi, which for the life of me, I couldn&#8217;t get the module to compile at all.  I tried numerous PKGBUILDs from other archers but none seem to compile.</p>
<p>I then looked to Apache with mod_fcgid which is supposed to be better for Apache2 installations over mod_fastcgi.  I had a little more success with this but overall it didn&#8217;t work.  I successfully created my own Arch package for this which seemed to install OK, I just never seemed to get it &#8216;talking&#8217; to rails properly <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>I then started to read some stuff about <a target="_blank" href="http://mongrel.rubyforge.org/">Mongrel</a> which looked interesting.  No FCGI but with speed <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />   I actually was reminded about Mongrel while reading Amy Hoy&#8217;s article &#8216;<a target="_blank" href="http://www.slash7.com/articles/2006/06/09/because-lets-face-it-webrick-sucks">Because let&#8217;s face it, WEBrick sucks</a>&#8216; which showed my how easy it would be to use Mongrel.  Thanks Amy <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So, getting Mongrel working was fine, but I wanted to proxy the requests through apache so that I had only one webserver talking to the outside world.  I found Hank Matter&#8217;s article &#8216;<a target="_blank" href="http://modzer0.cs.uaf.edu/hank-typo/articles/2006/06/15/successful-settings-for-apache-forwarding-to-mongrel">Successful settings for Apache forwarding to Mongrel</a>&#8216; set me off in the right direction but actually discovered this was overly complex for my setup.  It was actually alot easier than this to setup.</p>
<p>Hank seems to be setting it up so that a folder off your site proxys back to Mongrel and serves your rails content.  If though, like me, you are using virtual hosts, the setup is simplified further.<br />
It is just a case of adding this in your virtual host config -</p>
<pre>Redirect / http://vhost.example.com/
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/</pre>
<p>That&#8217;s it, Apache is now proxying back to Mongrel <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/osblues.wordpress.com/63/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/osblues.wordpress.com/63/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/osblues.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/osblues.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/osblues.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/osblues.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/osblues.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/osblues.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/osblues.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/osblues.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/osblues.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/osblues.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/osblues.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/osblues.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/osblues.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/osblues.wordpress.com/63/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=osblues.com&amp;blog=3608927&amp;post=63&amp;subd=osblues&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://osblues.com/2006/07/20/ruby-on-rails-on-arch-linux-with-mongrel-and-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f9d46f966c5a85f3238a4543f6ae3979?s=96&#38;d=wavatar&#38;r=R" medium="image">
			<media:title type="html">osblues</media:title>
		</media:content>
	</item>
	</channel>
</rss>
