SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 45 | Next

David J Murphy

"Managing Software Development with Trac and Subversion"


Now we will append a series of sections to our configuration file. We can safely
make all the changes in one go, but we will look at each set of changes individually
so we can understand what they do.
First we will tell Apache that any and all requests for the (virtual) folder projects
should be handled by Trac.
Chapter 3
[ 31 ]
For Microsoft Windows:
ScriptAlias /projects C:/Projects/trac.cgi
For Linux:
ScriptAlias /projects /usr/share/trac/cgi-bin/trac.cgi
Next we will specify an environment variable that tells Trac that it is serving
multiple projects and where to find those projects on the filesystem.

SetEnv TRAC_ENV_PARENT_DIR "/projects/trac"

Trac supports two methods of authentication??”HTTP and sessions. Authentication
will be covered in more detail later in this chapter, but for now we need to know that
we will be using HTTP authentication so that Apache can handle authentication to
Trac, Subversion, and WebDAV for us.
First we will make sure that anyone accessing the login link within any project
hosted on our server is required to be authenticated by Apache.

AuthType Basic
AuthName "Trac Environment"
AuthUserFile /projects/projects.


Pages:
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57