<?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/"
	>

<channel>
	<title>ThinkRobot &#187; symlinks</title>
	<atom:link href="http://think-robot.com/tag/symlinks/feed/" rel="self" type="application/rss+xml" />
	<link>http://think-robot.com</link>
	<description>Design &#38; Development Blog</description>
	<pubDate>Sat, 06 Mar 2010 20:58:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Server Error 500 - htaccess require valid-user</title>
		<link>http://think-robot.com/2008/08/server-error-500-htaccess-require-valid-user/</link>
		<comments>http://think-robot.com/2008/08/server-error-500-htaccess-require-valid-user/#comments</comments>
		<pubDate>Thu, 28 Aug 2008 21:19:33 +0000</pubDate>
		<dc:creator>Joanna</dc:creator>
		
		<category><![CDATA[Code]]></category>

		<category><![CDATA[fix]]></category>

		<category><![CDATA[htaccess]]></category>

		<category><![CDATA[htpasswd]]></category>

		<category><![CDATA[symlinks]]></category>

		<guid isPermaLink="false">http://www.think-robot.com/?p=11</guid>
		<description><![CDATA[I just spent a good couple of minutes hitting my head against the wall, trying to figure out why a perfectly good .htaccess file suddenly stopped working.
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /YOUR_PATH/www/.htpasswd
AuthGroupFile /dev/null
require valid-user
After commenting things out it seemed that it was the last line that was causing the problems. However do not be fooled. Careful [...]]]></description>
			<content:encoded><![CDATA[<p>I just spent a good couple of minutes hitting my head against the wall, trying to figure out why a perfectly good .htaccess file suddenly stopped working.</p>
<pre><code><code>AuthName "Restricted Area"
AuthType Basic
AuthUserFile /YOUR_PATH/www/.htpasswd
AuthGroupFile /dev/null
require valid-user</code></code></pre>
<p>After commenting things out it seemed that it was the last line that was causing the problems. However do not be fooled. Careful inspection and a bit of Google searching led me back to the AuthUserFile declaration.</p>
<p>But what could be wrong with it? The file exists on the server. The passwords are properly encrypted. The problem was the &#8220;www&#8221; folder. Or should I rather say symlink. Changing &#8220;www&#8221; to the original folder: &#8220;public_html&#8221; solved the issue.</p>
<p>Moral for today: .htaccess does not like symlink folders when it comes to .htpasswd&#8230;</p>
<div id="crp_related"><h2>Related Articles:</h2><ul><li><a href="http://think-robot.com/2008/11/wordpress-nextgen-gallery-tweak/" rel="bookmark">Wordpress NextGen gallery tweak</a></li><li><a href="http://think-robot.com/2008/12/strong-ownership-list-approach/" rel="bookmark">Strong ownership list approach</a></li><li><a href="http://think-robot.com/2009/12/phpunit-selenium-screenshot-path-problem/" rel="bookmark">PHPUnit & Selenium - screenshot path problem</a></li><li><a href="http://think-robot.com/2008/11/nested-sortable-using-jtree-clickable-links/" rel="bookmark">Nested sortable using jTree - clickable links</a></li><li><a href="http://think-robot.com/2009/02/how-to-use-the-strong-ownership-list/" rel="bookmark">How To Use the Strong Ownership List</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://think-robot.com/2008/08/server-error-500-htaccess-require-valid-user/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
