I've trac installed and running great using apache2 and mod_wsgi. However, if ever a person attempts to access the top of the page they're welcomed having a login. I have attempted a number of things, but everything I attempt either hinders the authentication altogether or will not allow unauthenticated customers to see the website. Here's the authentication portion of my httpd.conf file:

<Location '/'>
    AuthType Basic
    AuthName "Trac"
    AuthUserFile /home/trac/.htpasswd
    Require valid-user
</Location>

I am almost sure that the answer lies int the require line but I have exhausted my ow creativeness. Any ideas?

EDIT: The solution I decided is effective. The hyperlink given does not have instructions on connecting the password file to the system.

My memory is hazy, however the only solution I discovered after i had this problem was switching to from Apache authentication towards the AccountManagerPlugin.

You are able to specify when apache should request about password.

In trac whenever you choose Login it'll open site: /trac_folder/login

So determining place for authentication should have the desired effect. Check my trac.conf:

WSGIScriptAlias /trac   /var/lib/trac/apache/trac.wsgi

## This is required if you plan to use HTTP authorization. Without it the
## user name won't be passed
WSGIPassAuthorization On

<Directory /trac>
    WSGIApplicationGroup %{GLOBAL}
    Order deny,allow
    Allow from all
    #AuthType Basic
    #AuthName "TracHaselko"
    #AuthUserFile /var/lib/trac/authfiles/htpasswd
    #Require valid-user
</Directory>

<Location /trac/login>
    AuthType Basic
    AuthName "TracHaslo"
    AuthUserFile /var/lib/trac/authfiles/htpasswd
    Require valid-user
</Location>

In your soul file change:

<Location '/'>

to:

<Location '/login'>