<html>
<body>
Yeaaaaaaaaah, It Worked ! Thank you so very much !!!<br>
Leigh :-) :-)<br><br>
At 02:21 PM 6/24/2005, you wrote:<br>
<blockquote type=cite class=cite cite="">Hello,<br>
<br>
In apache 1.3.33 the following should work (works for me anyway :)
):<br>
<br>
Example:<br>
<br>
# There is an .htaccess file in the root directory with contents:<br>
AuthType Basic<br>
AuthName test<br>
AuthUserFile /path/to/password/file<br>
Require user valid-user<br>
<br>
httpd.conf:<br>
<br>
<Directory "/path/to/web/root"><br>
Options Indexes FollowSymLinks MultiViews<br>
AllowOverride AuthConfig<br>
Order allow,deny<br>
Allow from all<br>
</Directory><br>
<br>
<Directory "/path/to/web/root/sponsors"><br>
satisfy any<br>
</Directory><br>
<br>
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.<br>
<br>
Hope this helps.<br>
<br>
On 6/24/05, <b>Lei Jin</b>
<<a href="mailto:jinlei@sfsu.edu">jinlei@sfsu.edu</a>> wrote:
<br>
<dl>
<dd>I am currently building a website on Apache to bid for an academic
conference<br>
<dd>to be hosted in San Francisco. The overall website (htdocs
directory) is <br>
<dd>password protected because<br>
<dd>we don't want our competitors to see the detail. But at the
same time, we<br>
<dd>want a subdirectory (htdocs/sponsors)<br>
<dd>to be open to the public (not password protected). Is there
anyway to do <br>
<dd>this through Apache configuration ?<br><br>
<dd>Any suggestions would be highly appreciated.<br>
<dd>Thanks !<br>
<dd>Leigh :-)<br><br>
<dd>_______________________________________________<br>
<dd>talk mailing list<br>
<dd><a href="mailto:talk@nblug.org">talk@nblug.org</a><br>
<dd><a href="http://nblug.org/cgi-bin/mailman/listinfo/talk" eudora="autourl">http://nblug.org/cgi-bin/mailman/listinfo/talk</a><br><br>
</dl><br>
_______________________________________________<br>
talk mailing list<br>
talk@nblug.org<br>
<a href="http://nblug.org/cgi-bin/mailman/listinfo/talk" eudora="autourl">http://nblug.org/cgi-bin/mailman/listinfo/talk</a></blockquote>
<x-sigsep><p></x-sigsep>
-------------------------------------------------------------------------------------<br>
Leigh Jin, Ph.D. <br>
Assistant Professor of Information Systems<br>
San Francisco State University <br>
San Francisco, CA 94132 <br>
Tel: (415) 338-6286<br>
Fax: (415) 405-0364 <br>
-------------------------------------------------------------------------------------<br>
</body>
</html>