<?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>NewPush &#187; htaccess</title>
	<atom:link href="http://newpush.com/tag/htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>http://newpush.com</link>
	<description>Server Hosting, Data Warehouse Hosting, Collaboration</description>
	<lastBuildDate>Sun, 05 Sep 2010 17:42:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Setting up Apache Authentication with htpasswd / htaccess</title>
		<link>http://newpush.com/2009/05/setting-up-apache-authentication-with-htpasswd-htaccess/</link>
		<comments>http://newpush.com/2009/05/setting-up-apache-authentication-with-htpasswd-htaccess/#comments</comments>
		<pubDate>Sun, 31 May 2009 15:35:44 +0000</pubDate>
		<dc:creator>Balazs</dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[Hosting Support]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[Services]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[htpasswd]]></category>

		<guid isPermaLink="false">http://www.wdream.com/?p=297</guid>
		<description><![CDATA[Authentication in Apache is done through htaccess, either from the configuration file, or from the .htaccess file in a given directory. Note that only full directories can be easily protected with this method. Here is how: (first log in to &#8230; <a href="http://newpush.com/2009/05/setting-up-apache-authentication-with-htpasswd-htaccess/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><span class="grey">Authentication in Apache is done through htaccess, either from the configuration file, or from the .htaccess file in a given directory. Note that only full directories can be easily protected with this method.<br />
Here is how: (first log in to the shell, as this method only works if<br />
you have shell access)</p>
<pre>
$ cd .../html/protected_dir

$ cat &gt; .htaccess

AuthType Basic

Authname "Protected KLC directory"

AuthUserFile ../../control/htpasswd

AuthGroupFile /dev/null

Require valid-user

+d

$ htpasswd -c ../../control/htpasswd user_name

[give passwd]</pre>
<p>After the file is created for the first time, to<br />
add more users:</p>
<pre>
$ htpasswd ../../control/htpasswd user_name</pre>
<p>There are also more sophisticated authentication schemes available, that allow database driven authentication. Feel free to contact me for more information about those solutions.</span></p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fnewpush.com%2F2009%2F05%2Fsetting-up-apache-authentication-with-htpasswd-htaccess%2F&amp;partner=sociable" title="Print"><img src="http://newpush.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fnewpush.com%2F2009%2F05%2Fsetting-up-apache-authentication-with-htpasswd-htaccess%2F&amp;title=Setting%20up%20Apache%20Authentication%20with%20htpasswd%20%2F%20htaccess&amp;bodytext=Authentication%20in%20Apache%20is%20done%20through%20htaccess%2C%20either%20from%20the%20configuration%20file%2C%20or%20from%20the%20.htaccess%20file%20in%20a%20given%20directory.%20Note%20that%20only%20full%20directories%20can%20be%20easily%20protected%20with%20this%20method.%0AHere%20is%20how%3A%20%28first%20log%20in%20to%20the%20shell%2C" title="Digg"><img src="http://newpush.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fnewpush.com%2F2009%2F05%2Fsetting-up-apache-authentication-with-htpasswd-htaccess%2F&amp;title=Setting%20up%20Apache%20Authentication%20with%20htpasswd%20%2F%20htaccess&amp;notes=Authentication%20in%20Apache%20is%20done%20through%20htaccess%2C%20either%20from%20the%20configuration%20file%2C%20or%20from%20the%20.htaccess%20file%20in%20a%20given%20directory.%20Note%20that%20only%20full%20directories%20can%20be%20easily%20protected%20with%20this%20method.%0AHere%20is%20how%3A%20%28first%20log%20in%20to%20the%20shell%2C" title="del.icio.us"><img src="http://newpush.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fnewpush.com%2F2009%2F05%2Fsetting-up-apache-authentication-with-htpasswd-htaccess%2F&amp;t=Setting%20up%20Apache%20Authentication%20with%20htpasswd%20%2F%20htaccess" title="Facebook"><img src="http://newpush.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fnewpush.com%2F2009%2F05%2Fsetting-up-apache-authentication-with-htpasswd-htaccess%2F&amp;title=Setting%20up%20Apache%20Authentication%20with%20htpasswd%20%2F%20htaccess&amp;annotation=Authentication%20in%20Apache%20is%20done%20through%20htaccess%2C%20either%20from%20the%20configuration%20file%2C%20or%20from%20the%20.htaccess%20file%20in%20a%20given%20directory.%20Note%20that%20only%20full%20directories%20can%20be%20easily%20protected%20with%20this%20method.%0AHere%20is%20how%3A%20%28first%20log%20in%20to%20the%20shell%2C" title="Google Bookmarks"><img src="http://newpush.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a  href="http://blogplay.com" title="Blogplay"><img src="http://newpush.com/wp-content/plugins/sociable/images/blogplay.png" title="Blogplay" alt="Blogplay" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="mailto:?subject=Setting%20up%20Apache%20Authentication%20with%20htpasswd%20%2F%20htaccess&amp;body=http%3A%2F%2Fnewpush.com%2F2009%2F05%2Fsetting-up-apache-authentication-with-htpasswd-htaccess%2F" title="email"><img src="http://newpush.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fnewpush.com%2F2009%2F05%2Fsetting-up-apache-authentication-with-htpasswd-htaccess%2F&amp;title=Setting%20up%20Apache%20Authentication%20with%20htpasswd%20%2F%20htaccess&amp;source=NewPush+Server+Hosting%2C+Data+Warehouse+Hosting%2C+Collaboration&amp;summary=Authentication%20in%20Apache%20is%20done%20through%20htaccess%2C%20either%20from%20the%20configuration%20file%2C%20or%20from%20the%20.htaccess%20file%20in%20a%20given%20directory.%20Note%20that%20only%20full%20directories%20can%20be%20easily%20protected%20with%20this%20method.%0AHere%20is%20how%3A%20%28first%20log%20in%20to%20the%20shell%2C" title="LinkedIn"><img src="http://newpush.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fnewpush.com%2F2009%2F05%2Fsetting-up-apache-authentication-with-htpasswd-htaccess%2F&amp;partner=sociable" title="PDF"><img src="http://newpush.com/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://ping.fm/ref/?link=http%3A%2F%2Fnewpush.com%2F2009%2F05%2Fsetting-up-apache-authentication-with-htpasswd-htaccess%2F&amp;title=Setting%20up%20Apache%20Authentication%20with%20htpasswd%20%2F%20htaccess&amp;body=Authentication%20in%20Apache%20is%20done%20through%20htaccess%2C%20either%20from%20the%20configuration%20file%2C%20or%20from%20the%20.htaccess%20file%20in%20a%20given%20directory.%20Note%20that%20only%20full%20directories%20can%20be%20easily%20protected%20with%20this%20method.%0AHere%20is%20how%3A%20%28first%20log%20in%20to%20the%20shell%2C" title="Ping.fm"><img src="http://newpush.com/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://newpush.com/feed/" title="RSS"><img src="http://newpush.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=Setting%20up%20Apache%20Authentication%20with%20htpasswd%20%2F%20htaccess&amp;url=http%3A%2F%2Fnewpush.com%2F2009%2F05%2Fsetting-up-apache-authentication-with-htpasswd-htaccess%2F" title="Slashdot"><img src="http://newpush.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://twitter.com/home?status=Setting%20up%20Apache%20Authentication%20with%20htpasswd%20%2F%20htaccess%20-%20http%3A%2F%2Fnewpush.com%2F2009%2F05%2Fsetting-up-apache-authentication-with-htpasswd-htaccess%2F" title="Twitter"><img src="http://newpush.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://newpush.com/2009/05/setting-up-apache-authentication-with-htpasswd-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
