[NBLUG/talk] Question about Apache
James Reed
james.w.reed at gmail.com
Fri Jun 24 14:21:45 PDT 2005
Hello,
In apache 1.3.33 the following should work (works for me anyway :) ):
Example:
# There is an .htaccess file in the root directory with contents:
AuthType Basic
AuthName test
AuthUserFile /path/to/password/file
Require user valid-user
httpd.conf:
<Directory "/path/to/web/root">
Options Indexes FollowSymLinks MultiViews
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
<Directory "/path/to/web/root/sponsors">
satisfy any
</Directory>
When I tested this I was prompted for a password when hitting the root
webpage. Then I closed all the browser windows and opened the sponsors index
page directly, no password prompt.
Hope this helps.
On 6/24/05, Lei Jin <jinlei at sfsu.edu> wrote:
>
> I am currently building a website on Apache to bid for an academic
> conference
> to be hosted in San Francisco. The overall website (htdocs directory) is
> password protected because
> we don't want our competitors to see the detail. But at the same time, we
> want a subdirectory (htdocs/sponsors)
> to be open to the public (not password protected). Is there anyway to do
> this through Apache configuration ?
>
> Any suggestions would be highly appreciated.
> Thanks !
> Leigh :-)
>
> _______________________________________________
> talk mailing list
> talk at nblug.org
> http://nblug.org/cgi-bin/mailman/listinfo/talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://nblug.org/pipermail/talk/attachments/20050624/af23d480/attachment.htm
More information about the talk
mailing list