Disabling apache user authentication for a subdirectory?

Ilguiz Latypov ilatypov at infradead.org
Thu Jul 22 16:35:01 EDT 2004


Scott,

On Mon Jul 12 you wrote:
> This works, sort of. If I use a utility like wget I can download files
> within that subdirectory, but using any web browser (Firefox, Mozilla,
> Epiphany, IE) still pops up a login dialog box.

I am popping in this mailing list just to show my finding after I hit
the same problem.  Looking at the Apache log file helped me to identify
the cause.

In my case it turned out the browser was trying to load another URL from
the same host when I opened the unprotected page.  This URL was referred
to by the page as a style sheet.

Here is the revised Location directive I am using to unprotect a
subdirectory of my Subversion repository in ViewCVS web interface:

  ScriptAlias /svn /usr/local/viewcvs-1.0-dev/www/cgi/viewcvs.cgi
  ScriptAlias /querycvs /usr/local/viewcvs-1.0-dev/www/cgi/query.cgi
  <Location "/svn">
    AllowOverride AuthConfig
    AuthUserFile /etc/apache/passwd-viewcvs
    AuthName "Version control repository"
    AuthType Basic
    Require valid-user
  </Location>

  <Location ~ "/svn/(scripts|\*docroot\*|\*checkout\*/scripts)">
    Satisfy any
  </Location>

Regards,

-- 
Ilguiz Latypov




More information about the gnhlug-discuss mailing list