<?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>randys.org &#187; mongrel</title>
	<atom:link href="http://www.randys.org/tag/mongrel/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.randys.org</link>
	<description>wasting your precious bandwidth since 1998</description>
	<lastBuildDate>Wed, 16 Nov 2011 23:40:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Apache2: mod_rewrite vs. mod_proxy</title>
		<link>http://www.randys.org/2007/01/11/apache2-mod_rewrite-vs-mod_proxy/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=apache2-mod_rewrite-vs-mod_proxy</link>
		<comments>http://www.randys.org/2007/01/11/apache2-mod_rewrite-vs-mod_proxy/#comments</comments>
		<pubDate>Thu, 11 Jan 2007 00:43:00 +0000</pubDate>
		<dc:creator>randy</dc:creator>
				<category><![CDATA[Code Chunks]]></category>
		<category><![CDATA[General Nerdery]]></category>
		<category><![CDATA[Home]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mongrel]]></category>

		<guid isPermaLink="false">http://www.randys.org//2007/01/11/apache2-mod_rewrite-vs-mod_proxy</guid>
		<description><![CDATA[I can&#8217;t quite figure this out. I&#8217;m trying to write a simple rule to force randys.org to redirect to www.randys.org but it&#8217;s not realy working. Of course, I haven&#8217;t tried it on a vhost that isn&#8217;t proxying request to mongrel. &#8230; <a href="http://www.randys.org/2007/01/11/apache2-mod_rewrite-vs-mod_proxy/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I can&#8217;t quite figure this out. I&#8217;m trying to write a simple rule to force <code>randys.org</code> to redirect to <code>www.randys.org</code> but it&#8217;s not realy working. Of course, I haven&#8217;t tried it on a vhost that isn&#8217;t proxying request to mongrel. Here&#8217;s the rule:</p>
<pre><code>RewriteEngine On
RewriteCond %{HTTP_HOST}    !^www.randys.org$ [NC]
RewriteCond %{HTTP_HOST}    !^$
RewriteRule ^/(.*)          http://www.randys.org/$1 [R=301,L]
</code></pre>
<p>Anyone?</p>
<div style=" text-align: center;  margin: 8px; ">
				<script type="text/javascript">
				google_ad_client = "pub-4904471974338763";
				google_ad_width = 468;
				google_ad_height = 60;
				google_ad_format = "468x60_as";
				google_ad_type = "text_image";
				google_ad_channel = "8409641020";
				google_color_border = "#C7C7C7";
				google_color_bg = "#FFFFFF";
				google_color_link = "#777777";
				google_color_text = "#777777";
				google_color_url = "#3333CC";
				google_ui_features = "rc:0";
				</script>
				<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
			</div><!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://www.randys.org/2007/01/11/apache2-mod_rewrite-vs-mod_proxy/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Typo, Apache &amp; Mongrel, Oh My!</title>
		<link>http://www.randys.org/2007/01/10/typo-apache-mongrel-oh-my/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=typo-apache-mongrel-oh-my</link>
		<comments>http://www.randys.org/2007/01/10/typo-apache-mongrel-oh-my/#comments</comments>
		<pubDate>Wed, 10 Jan 2007 02:32:00 +0000</pubDate>
		<dc:creator>randy</dc:creator>
				<category><![CDATA[Code Chunks]]></category>
		<category><![CDATA[General Nerdery]]></category>
		<category><![CDATA[Home]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mongrel]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.randys.org//2007/01/10/typo-apache-mongrel-oh-my</guid>
		<description><![CDATA[Wow. I&#8217;ve been testing the possibility of running Typo on my VPS with the pre-notion that it just wouldn&#8217;t work very well. I think I may be wrong. It&#8217;s been running for about a week while I tweak some shit &#8230; <a href="http://www.randys.org/2007/01/10/typo-apache-mongrel-oh-my/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Wow. I&#8217;ve been testing the possibility of running <a href="http://typosphere.org">Typo</a> on my VPS with the pre-notion that it just wouldn&#8217;t work very well. I think I may be wrong. It&#8217;s been running for about a week while I tweak some shit and so far, my memory performance has been stable. Of course, thing would probably be different if I threw some <strong>real</strong> traffic at it&#8230; but, then again, I don&#8217;t get a lot of that.</p>
<h2>The Setup</h2>
<p>Initially, I was going to use <a href="http://www.lighttpd.net">lighty</a> + <a href="http://www.fastcgi.com">fastcgi</a> to serve up the Rails application. So, I had setup lighty to serve up my PHP/MySQl sites and that worked just fine. Then I started reading up on <a href="http://mongrel.rubyforge.org">Mongrel</a> and wanted to see what all the hubub was about. But then I got to reading the <a href="http://mongrel.rubyforge.org">Mongrel</a> site (more specifically the part where he says <a href="http://mongrel.rubyforge.org/docs/lighttpd.html">don&#8217;t use lighty and mod_proxy</a>).</p>
<p>Crap.</p>
<p>Aight, so back to <a href="http://httpd.apache.org">Apache</a> and their proxy setup. no biggie. I racked my brain for several hours one night trying to figure out why the hell I kept getting these 403 Forbidden errors in Apache. Hours. After the millionth <a href="http://www.google.com">Google</a> search, I finally found the issue: The mod_proxy configuration <em>in <a href="http://www.ubuntu.com">Ubuntu</a></em> is turned off by default (well, not really turned off&#8230; it just denies traffic to the proxy server).</p>
<pre><code> 8     &lt;Proxy *&gt;
 9         Order deny,allow
10         #Deny from all
11         Allow from .randys.org
12     &lt;/Proxy&gt;
</code></pre>
<p>Line 8 was initially not commented out. I had to comment that out and add the <code>Allow from .randys.org</code> bit.</p>
<p>Once I got that changed and reloaded Apache, everything is working nicely together.. even <a href="http://www.php.net">PHP</a>.</p>
<h2>The Tweaks</h2>
<p>So far, the only tweaks I&#8217;ve managed to make is to the <a href="http://www.flickr.com">flickr</a> Sidebar plugin. It now uses <a href="http://www.huddletogether.com/projects/lightbox2/">Lightbox V2</a>. That was a bit tricky, considering I don&#8217;t really know <a href="http://www.ruby-lang.org">Ruby</a> but, it all worked out in the end.</p>
<p>As I figure out more <em>stuff</em> to do, I&#8217;ll post more.</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://www.randys.org/2007/01/10/typo-apache-mongrel-oh-my/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

