Ticket #488 (closed defect: fixed)

Opened 9 years ago

Last modified 9 years ago

Trac error: Authentication information not available. Please refer to the installation documentation.

Reported by: kmaclean Owned by: kmaclean
Priority: critical Milestone:
Component: Web Site Version: 0.1-alpha
Keywords: Cc:

Description


Change History

comment:1 Changed 9 years ago by kmaclean

  • Status changed from new to closed
  • Resolution set to fixed
# !!!!!! Dec 12, 2012
# fix for "Authentication information not available. Please refer to the installation documentation."  
#    <Location "/projects/[^/]*/login"> 
#        AuthType Basic 
#        AuthName "VoxForge Trac Server" 
#        AuthUserFile /data/svnroot/login/passwordfile 
#        Require valid-user 
#    </Location> 

<LocationMatch "/projects/[^/]+/login">
        AuthType Basic 
        AuthName "VoxForge Trac Server" 
        AuthUserFile /data/svnroot/login/passwordfile 
        Require valid-user 
    </LocationMatch> 
# !!!!!!!

comment:2 Changed 9 years ago by kmaclean

fixed trac-svn.conf file

see http://trac.edgewall.org/wiki/TracModPython#Settingupmultipleprojects for details:

Setting up multiple projects ¶

The Trac mod_python handler supports a configuration option similar to Subversion's SvnParentPath, called TracEnvParentDir:

<Location /projects>
  SetHandler mod_python
  PythonInterpreter main_interpreter
  PythonHandler trac.web.modpython_frontend 
  PythonOption TracEnvParentDir /var/trac
  PythonOption TracUriRoot /projects
</Location>

When you request the /projects URL, you will get a listing of all subdirectories of the directory you set as TracEnvParentDir that look like Trac environment directories. Selecting any project in the list will bring you to the corresponding Trac environment.

If you don't want to have the subdirectory listing as your projects home page you can use a

<LocationMatch "/.+/">

This will instruct Apache to use mod_python for all locations different from root while having the possibility of placing a custom home page for root in your DocumentRoot folder.

You can also use the same authentication realm for all of the projects using a <LocationMatch> directive:

<LocationMatch "/projects/[^/]+/login">
  AuthType Basic
  AuthName "Trac"
  AuthUserFile /var/trac/.htpasswd
  Require valid-user
</LocationMatch>


Note: See TracTickets for help on using tickets.