<?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>Linden LAN &#187; Apache</title>
	<atom:link href="http://www.lindenlan.net/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lindenlan.net</link>
	<description></description>
	<lastBuildDate>Sat, 29 Nov 2014 04:54:20 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>Make Rails Play Nice With FLVPlayback Skin</title>
		<link>http://www.lindenlan.net/2010/04/03/make-rails-play-nice-with-flvplayback-skin/</link>
		<comments>http://www.lindenlan.net/2010/04/03/make-rails-play-nice-with-flvplayback-skin/#comments</comments>
		<pubDate>Sat, 03 Apr 2010 08:11:02 +0000</pubDate>
		<dc:creator><![CDATA[Brian]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://www.lindenlan.net/?p=372</guid>
		<description><![CDATA[Flash assets like an FLVPlayback skin will typically be located in your public folder. However, according to http://kb2.adobe.com/cps/608/608abffd.html, “in a loading scenario, the skin SWF for the FLVPlayback component must be relative to the loading HTML file containing the parent SWF on the server, not to the location of the loaded SWF.” This is bad, [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Flash assets like an FLVPlayback skin will typically be located in your public folder.  However, according to <a href="http://kb2.adobe.com/cps/608/608abffd.html">http://kb2.adobe.com/cps/608/608abffd.html</a>, “in a loading scenario, the skin SWF for the FLVPlayback component must be relative to the loading HTML file containing the parent SWF on the server, not to the location of the loaded SWF.”  This is bad, since when you load a page, the URL will typically be /:controller/:action,  which means the FLVPlayback skin URL will be /:controller/myskin.swf even if your parent SWF is in /public.  You can verify this in Firebug on the Net tab.  The problem will manifest itself with a loaded Flash movie with no controls.  You can fix this by creating a rewrite rule in your .htaccess file.</p>
<pre class="brush: bash">
RewriteRule ^.*/myskin.swf$ /pathto/myskin.swf
</pre>
<p>Any request ending in myskin.swf will be redirected to /pathto/myskin.swf under the public folder.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lindenlan.net/2010/04/03/make-rails-play-nice-with-flvplayback-skin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use .htaccess To Password Protect All But The Index File</title>
		<link>http://www.lindenlan.net/2009/07/31/use-htaccess-to-password-protect-all-but-the-index-file/</link>
		<comments>http://www.lindenlan.net/2009/07/31/use-htaccess-to-password-protect-all-but-the-index-file/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 20:14:14 +0000</pubDate>
		<dc:creator><![CDATA[Brian]]></dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://www.lindenlan.net/?p=328</guid>
		<description><![CDATA[I helped deploy a Magento store today, but the client did not have all the products entered in the database, and won’t be ready to launch that part of the site for another month. So they wanted a “Coming Soon!” splash page to be at the subdirectory where the store is and password protect everything [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>I helped deploy a Magento store today, but the client did not have all the products entered in the database, and won’t be ready to launch that part of the site for another month.  So they wanted a “Coming Soon!” splash page to be at the subdirectory where the store is and password protect everything else.  To do that I had to reconfigure the .htaccess file.</p>
<p><span id="more-328"></span></p>
<p>First I needed to chage the default index file.  That’s simple.  Change…</p>
<pre class="brush: php">
DirectoryIndex index.php
</pre>
<p>to…</p>
<pre class="brush: php">
DirectoryIndex index.html
</pre>
<p>Next I needed to password protect the site.  That accomplished by using htpassword to setup the users and groups, followed by adding the following directives to the end of the .htaccess file.</p>
<pre class="brush: php">
AuthType Basic
AuthName &quot;protected area&quot;
AuthUserFile /home/68571/.htpasswd
AuthGroupFile /home/68571/.htgroup
Require group group
Require user username
</pre>
<p>That will password protect everything.  Finally, I need to allow the index.html file for the splash page.</p>
<pre class="brush: php">
&lt;FilesMatch &quot;^$|store|index.html&quot;&gt;
  Allow from all
  Satisfy any
&lt;/FilesMatch&gt;
</pre>
<p>The first regex will match against “subdir/”, the second regex matches “subdir”, and the third matches “subdir/index.html”.  That’s it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lindenlan.net/2009/07/31/use-htaccess-to-password-protect-all-but-the-index-file/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>No PHP For You!</title>
		<link>http://www.lindenlan.net/2008/12/14/no-php-for-you/</link>
		<comments>http://www.lindenlan.net/2008/12/14/no-php-for-you/#comments</comments>
		<pubDate>Sun, 14 Dec 2008 21:56:49 +0000</pubDate>
		<dc:creator><![CDATA[Brian]]></dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.lindenlan.net/?p=270</guid>
		<description><![CDATA[On Ubuntu 8.10, I ran into a bit of problem. The Apache web server was working fine, but the following commands: sudo apt-get install php5 libapache-mod-php5 sudo /etc/init.d/apache2 restart failed to work after creating a phpinfo.php file in the /var/www/ root folder. Firefox complained, “You have chosen to open phpinfo.php which is a: PHP file.” [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>On Ubuntu 8.10, I ran into a bit of problem.  The Apache web server was working fine, but the following commands:<br/><br/></p>
<pre class="brush: bash">
sudo apt-get install php5 libapache-mod-php5
sudo /etc/init.d/apache2 restart
</pre>
<p>failed to work after creating a phpinfo.php file in the /var/www/ root folder.  Firefox complained, “You have chosen to open phpinfo.php which is a: PHP file.”  Apache was not using the PHP preprocessor for some reason.  A bunch of forum posts and blogs said to edit either /etc/apache2/httpd.conf or /etc/apache2/apache2.conf in order to associate the PHP mime type with the file extension.  That wouldn’t work because I had also installed phpmyadmin which has an apache.conf file that already has an AddType directive.  So, after some digging around, it turns out the module wasn’t even being loaded, even though that’s what you’d expect the package manager to handle when you tell it to install the module.  Any how, to fix the problem, just create symbolic links to the php5.load and php5.conf files in the /etc/apache2/mods-enabled/ folder.</p>
<pre class="brush: bash">
sudo ln -s /etc/apache2/mods-available/php5.load /etc/apache2/mods-enabled/php5.load
sudo ln -s /etc/apache2/mods-available/php5.conf /etc/apache2/mods-enabled/php5.conf
sudo /etc/init.d/apache2 restart
</pre>
<p>Update: Debian-based installs of Apache2 have some handy command line utils for managing the web server.  So to enable a mod, which automates the above, do this instead:</p>
<pre class="brush: bash">
sudo a2enmod php5
</pre>
<p>a2dismod is the command for disabling a mod.  For sites, there is also a2ensite and a2dissite.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lindenlan.net/2008/12/14/no-php-for-you/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
