An Apache2 configuration question
Jerry
gesbbb at yahoo.com
Fri Jan 2 12:14:53 UTC 2009
On Fri, 2 Jan 2009 02:33:54 -0500
stan <stanb at panix.com> wrote:
>I'm setting up a 7.1 machine thta will server as, among other things,
>a web serrver. I've installed Apache2. I have some directores in the
>Apache documnet directory that I wish to pasword protect. I have added
>the following clause to /usr/local/etc/apache22/httpd.conf. I have
>created a
>
><Directory "/usr/local/www/data"
> Options Indexes FollowSymLinks
> AllowOverride AuthConfig
></Directory>
>
>In the directories that I want protected, I have created .htaccess
>files that look like this:
>
>AuthName "Pictures"
>AuthType "Basic"
>AuthUserFile /usr/local/etc/apache22/users2
>require valid-user
>
>I have used htpasswd to create the users2 file.
>
>Ecerything works the way that I want _execpt_ the top level web page
>directory index, does not display the directories that have .htaccess
>files in them.
>
>What do I need to do to fix this?
Have you checked out this URL:
http://httpd.apache.org/docs/1.3/howto/auth.html
You might also consider posting your question on the Apache list.
--
Jerry
gesbbb at yahoo.com
There seems no plan because it is all plan.
C.S. Lewis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090102/b2f45d33/signature.pgp
More information about the freebsd-questions
mailing list