httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sjm <...@porter.acadaff.appstate.edu>
Subject Re: [users@httpd] Nesting the Files section in httpd.conf
Date Tue, 13 May 2003 15:30:43 GMT
Awesome!  Thanks Joshua!

Here's the final answer I am using for anyone that may find it useful:

<Directory /var/www/html/sitename/maint/users/>
     AllowOverride AuthConfig

     <Files protected.file>
         AuthType Basic
         AuthName "Protected File"
         AuthUserFile /path/to/.htpasswd
         Require user user_name
     </Files>
</Directory>

Thanks again,
Steve

Joshua Slive wrote:

> On Tue, 13 May 2003, sjm wrote:
> 
>>     <Files var/www/html/sitename/maint/users/protected.file>
> 
> 
> <Files> takes a filename as an argument, not a full path.  You want <Files
> protected.file>
> 
> Joshua.
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org

-- 
/*-----------------------------*\
|                               |
|    Steve McKinney             |
|    ARDI - Web Programmer      |
|    sjm@porter.appstate.edu    |
|    (828) 262-6553             |
|                               |
\*-----------------------------*/


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message