<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1015162" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1015162</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/help-htaccess#comment-1087563</link>
    <description> &lt;p&gt;That worked very nicely, thanks!&lt;/p&gt;
 </description>
     <pubDate>Sun, 19 Aug 2001 05:52:20 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1087563 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/help-htaccess#comment-1087519</link>
    <description> &lt;p&gt;Well, there would be several viable ways to do so in Apache&#039;s httpd.conf file. You could use the &lt;strong&gt;&lt;/strong&gt; directive. I use the &lt;strong&gt;&lt;/strong&gt; on one of my sites. It specifies some directories that are public (allow). It also specifies that the other directories that can&#039;t be accessed at all from a browser (deny). &lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://httpd.apache.org/docs/mod/core.html#directorymatch&quot; class=&quot;bb-url&quot;&gt;&lt;strong&gt;Here&lt;/strong&gt;&lt;/a&gt; are the directives for Apache. Look over the location directive.&lt;/p&gt;
 </description>
     <pubDate>Fri, 17 Aug 2001 20:45:08 +0000</pubDate>
 <dc:creator>mairving</dc:creator>
 <guid isPermaLink="false">comment 1087519 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/help-htaccess#comment-1087502</link>
    <description> &lt;p&gt;What is the syntax for the Apache conf?&lt;/p&gt;
 </description>
     <pubDate>Fri, 17 Aug 2001 16:09:05 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1087502 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/help-htaccess#comment-1087478</link>
    <description> &lt;p&gt;Too many problems sometimes doing it this way. Do you have shell access to the system via telnet/SSH? If so here are the steps:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;&lt;br /&gt;
Installing the .htaccess involves a few steps. The most important thing is to make sure you do not install the .htaccess file in your main web directory. If you do, everyone will be locked out of your website. Unless this is what you want to do, make sure you create the directory and are located in it before creating the file.&lt;br /&gt;
Step 1: See where you are. At your prompt enter the command pwd to see what directory you are in. If you already have made your new directory and are in it- go to Step 3. &lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Step 2: issue the command mkdir dirname where dirname is what you want to call the directory you will be protecting. Then enter the command cd dirname &lt;/p&gt;
&lt;p&gt;Step 3: Using an editor such as vi or pico, create a file called .htaccess (lower case letters of course- with the leading period) that looks just like this:&lt;br /&gt;
AuthUserFile /usr/www/dirname/.htpasswd&lt;br /&gt;
AuthGroupFile /dev/null&lt;br /&gt;
AuthName &quot;The Secret Page&quot;&lt;br /&gt;
AuthType Basic&lt;/p&gt;
&lt;p&gt;require valid-user&lt;/p&gt;
&lt;p&gt;Step 4: Change the AuthUserFile so that the UNIX PATH matches that of your system. This is where the password file that we will create in a moment will reside. &lt;/p&gt;
&lt;p&gt;Step 5: Change The Secret Page to be whatever title you want to have appear on the password box. &lt;/p&gt;
&lt;p&gt;Step 6: To create the password file, issue the following command: (NOTE: you only do it this way to create a new file)&lt;br /&gt;
htpasswd -c .htpasswd user_name (where user_name is a name)&lt;br /&gt;
If you get a message like, htpasswd: not found enter the command type htpasswd. If that doesn&#039;t do the trick, try which httpd. If htpasswd is not in your path, you will have to add that directory to your path or enter the command as /what/ever/dir/htpasswd -c .htpasswd user_name &lt;/p&gt;
&lt;p&gt;Step 7: The system will ask you to enter the password for this user. It will then ask you a second time to confirm your typing. &lt;/p&gt;
&lt;p&gt;Step 8: Continue to add new users, but with this version of the command. The -c option is only for the initial creation of the file.&lt;br /&gt;
htpasswd .htpasswd new_name  &lt;/p&gt;
&lt;p&gt;That is all there is to it! If you experience any unexpected problems, or you change your mind about restricting access, just issue the command: &lt;/p&gt;
&lt;p&gt;rm .htaccess  &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you don&#039;t have shell access to your system, more than likely your your path to your password file is not correct. I am not a huge fan of htaccess myself. On a busy server, you can have some performance problems since it has to read this file constantly to verify users. It is best to add the lines to your Apache conf files. Most hosts don&#039;t really want to do this since they have to restart the server and if it doesn&#039;t work, they have to fix it.&lt;/p&gt;
 </description>
     <pubDate>Fri, 17 Aug 2001 10:49:10 +0000</pubDate>
 <dc:creator>mairving</dc:creator>
 <guid isPermaLink="false">comment 1087478 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/help-htaccess#comment-1087475</link>
    <description> &lt;p&gt;I have the same problem..&lt;/p&gt;
 </description>
     <pubDate>Fri, 17 Aug 2001 09:12:28 +0000</pubDate>
 <dc:creator>a_gajic</dc:creator>
 <guid isPermaLink="false">comment 1087475 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
