<?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>Fri, 20 Apr 2012 10:25:44 +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> ]]></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>
<!-- Served from: newpush.com @ 2012-05-22 11:43:52 by W3 Total Cache -->
