The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

httpd.conf-ers by maximumbob2005-08-16 07:53:37
  Slashes... by Alcyone 2005-08-16 08:52:08
Use slashes after the alias definitions. Don't use slashes in directory definitions...

Apache can be very picky and weird. E.g. that require definition must be "Require valid-user", with exactly that case! If you use "Require Valid-user", Apache requires a user named "Valid-user", not any valid user from authfile (and in your case, requires "vaild-user" as pointed out).

If working in linux or newer Windozes, be sure to make the files readable by Apache (including that AuthUserFile... been there, done that).

You should put "Order allow,deny" and "Allow from all" to your directory definition. This would allow all IPs to try logging in. (Not sure what the default is, but better to be safe than sorry...)

If you want to see the directory listing, put "Options Indexes" in the directory definition.

Here's what works for me in linux with digest authentication and SSL:

Alias /tools/ /var/www/tools/
<Directory /var/www/tools>
        Options Multiviews Indexes
        AllowOverride None
        Order allow,deny
        Allow from all
        AuthType Digest
        AuthName "Restricted"
        AuthDigestFile /var/www/digests
        Require valid-user
        SSLRequireSSL
</Directory>
[ Reply ]

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)