<?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>Jtanium's Notebook &#187; Apache</title>
	<atom:link href="http://www.jtanium.com/category/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jtanium.com</link>
	<description>I jot things down, in hopes of finding them later...</description>
	<lastBuildDate>Wed, 21 Dec 2011 23:21:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Apache, WordPress, Passenger, and You</title>
		<link>http://www.jtanium.com/2010/11/06/apache-wordpress-passenger-and-you/</link>
		<comments>http://www.jtanium.com/2010/11/06/apache-wordpress-passenger-and-you/#comments</comments>
		<pubDate>Sat, 06 Nov 2010 21:28:45 +0000</pubDate>
		<dc:creator>jtanium</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://www.jtanium.com/?p=222</guid>
		<description><![CDATA[I was trying to get a web application running here along side WordPress, but, in essence, Apache wasn&#8217;t letting mod_rails handle the request. Several Google searches turned up precisely zero answers. After poking around I found the .htaccess file that WordPress so kindly generates for you: # BEGIN WordPress &#60;IfModule mod_rewrite.c&#62; RewriteEngine On RewriteBase / [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying to get a web application running here along side WordPress, but, in essence, Apache wasn&#8217;t letting mod_rails handle the request.</p>
<p>Several Google searches turned up precisely zero answers.  After poking around I found the .htaccess file that WordPress so kindly generates for you:</p>
<pre># BEGIN WordPress
&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
&lt;/IfModule&gt;

# END WordPress
</pre>
<p>What this little guy is doing is displaying a nice pretty 404 page, instead of a plain old ugly Apache page.  It does this by looking to see if there is a file or directory matching the file name in the request.</p>
<p>Obviously, there aren&#8217;t files and directories to correspond with your web app urls.  The solution is, quite simply, to tell Apache not to go looking for files and directories when the request needs to go to your web application.  So how do you that? Like this:</p>
<pre>RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/myrailsapp.*
RewriteRule . /index.php [L]
</pre>
<p>Voila!  Now Apache won&#8217;t try looking for any files or directories when the request begins with &#8220;myrailsapp.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jtanium.com/2010/11/06/apache-wordpress-passenger-and-you/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Limit Access to WordPress Admin</title>
		<link>http://www.jtanium.com/2009/11/30/limit-access-to-wordpress-admin/</link>
		<comments>http://www.jtanium.com/2009/11/30/limit-access-to-wordpress-admin/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 16:31:47 +0000</pubDate>
		<dc:creator>jtanium</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[brute force]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.jtanium.com/2009/11/30/limit-access-to-wordpress-admin/</guid>
		<description><![CDATA[This entry on the Internet Storm Center&#8217;s Handler&#8217;s Diary was about &#8220;Distributed WordPress admin account cracking&#8221; &#8212; scary stuff. In the the article they suggest limiting the addresses from which the admin can be accessed. If you&#8217;re using Apache, here&#8217;s one way using the &#60;Location&#62; directive: &#60;Location /wp-admin&#62; Order Deny,Allow Deny from all Allow from [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://isc.sans.org/diary.html?n&#038;storyid=7663">This entry</a> on the Internet Storm Center&#8217;s Handler&#8217;s Diary was about &#8220;Distributed WordPress admin account cracking&#8221; &#8212; scary stuff.</p>
<p>In the the article they suggest limiting the addresses from which the admin can be accessed.  If you&#8217;re using Apache, here&#8217;s one way using the <a href="http://httpd.apache.org/docs/2.2/mod/core.html#location">&lt;Location&gt; directive</a>:</p>
<pre>
&lt;Location /wp-admin&gt;
   Order Deny,Allow
   Deny from all
   Allow from example.com 10.211.34.83
&lt;/Location&gt;
&lt;Location /wp-login.php&gt;
   Order Deny,Allow
   Deny from all
   Allow from example.com 10.211.34.83
&lt;/Location&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.jtanium.com/2009/11/30/limit-access-to-wordpress-admin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache2 on Feisty</title>
		<link>http://www.jtanium.com/2007/09/06/apache2-on-feisty/</link>
		<comments>http://www.jtanium.com/2007/09/06/apache2-on-feisty/#comments</comments>
		<pubDate>Fri, 07 Sep 2007 02:39:13 +0000</pubDate>
		<dc:creator>jtanium</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.jtanium.com/blog/?p=44</guid>
		<description><![CDATA[So I kept running into the following problem on my shiny new Feisty server: * Starting web server (apache2)... Syntax error on line 141 of /etc/apache2/apache2.conf: Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration After a bit of Googling, I found this bug in Ubuntu. The lame [...]]]></description>
			<content:encoded><![CDATA[<p>So I kept running into the following problem on my shiny new Feisty server:</p>
<pre>
 * Starting web server (apache2)...
Syntax error on line 141 of /etc/apache2/apache2.conf:
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration</pre>
<p>After a bit of <a href="http://www.google.com/search?hl=en&#038;client=firefox-a&#038;rls=com.ubuntu%3Aen-US%3Aofficial&#038;hs=6m8&#038;q=feisty+Syntax+error+line+141+apache2.conf+Invalid+command+%27Order%27&#038;btnG=Search">Googling</a>, I found this <a href="https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/95162">bug</a> in Ubuntu.  The lame part is it&#8217;s not been fixed, and probably won&#8217;t be since the focus is on Gutsy&#8230;</p>
<p>Anywho, it suggested loading <code>mod_authz_host</code>, like so:</p>
<pre>sudo a2enmod authz_host</pre>
<p>But when I tried to start Apache again, I got this:</p>
<pre>
 * Starting web server (apache2)...
Syntax error on line 145 of /etc/apache2/apache2.conf:
Invalid command 'TypesConfig', perhaps misspelled or defined by a module not included in the server configuration</pre>
<p>Grrr&#8230;  Another <a href="http://www.google.com/search?q=Invalid+command+%27TypesConfig%27%2C&#038;ie=utf-8&#038;oe=utf-8&#038;aq=t&#038;rls=com.ubuntu:en-US:official&#038;client=firefox-a">Google search</a> led me to <a href="http://www.netadmintools.com/art398.html">this useful page</a>, which told me the missing module here is <code>mod_mime</code>.  Load that like so:</p>
<pre>sudo a2enmod mime</pre>
<p>And you should see:</p>
<pre> * Starting web server (apache2)...        [ OK ]</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.jtanium.com/2007/09/06/apache2-on-feisty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mod_mem_cache.c:591: undefined reference to `ap_cache_cacheable_hdrs_out&#8217;</title>
		<link>http://www.jtanium.com/2007/09/06/mod_mem_cachec591-undefined-reference-to-ap_cache_cacheable_hdrs_out/</link>
		<comments>http://www.jtanium.com/2007/09/06/mod_mem_cachec591-undefined-reference-to-ap_cache_cacheable_hdrs_out/#comments</comments>
		<pubDate>Thu, 06 Sep 2007 15:17:49 +0000</pubDate>
		<dc:creator>jtanium</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://www.jtanium.com/blog/?p=43</guid>
		<description><![CDATA[If you are getting this error, it&#8217;s because you&#8217;ve included the &#8216;--enable-mem-cache&#8216; flag, but not the &#8216;--enable-cache&#8216; one. You need both.]]></description>
			<content:encoded><![CDATA[<p>If you are getting this error, it&#8217;s because you&#8217;ve included the &#8216;<code>--enable-mem-cache</code>&#8216; flag, but not the &#8216;<code>--enable-cache</code>&#8216; one.  You need both.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jtanium.com/2007/09/06/mod_mem_cachec591-undefined-reference-to-ap_cache_cacheable_hdrs_out/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

