<?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>ThinkRobot &#187; htpasswd</title>
	<atom:link href="http://think-robot.com/tag/htpasswd/feed/" rel="self" type="application/rss+xml" />
	<link>http://think-robot.com</link>
	<description>Design &#38; Development Blog</description>
	<lastBuildDate>Sun, 22 Apr 2012 23:58:32 +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>Server Error 500 &#8211; 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. [...]]]></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>AuthName "Restricted Area"
AuthType Basic
AuthUserFile /YOUR_PATH/www/.htpasswd
AuthGroupFile /dev/null
require valid-user</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/2011/06/wordpress-update-permission-issues/" rel="bookmark">WordPress update permission issues</a></li><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/2010/12/php_auth_user-and-php_auth_pw-is-null/" rel="bookmark">PHP_AUTH_USER and PHP_AUTH_PW is null</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://think-robot.com/2008/08/server-error-500-htaccess-require-valid-user/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

