|
In the ~/www/myproject/ directory, create an .htaccess file
specifying
your authentication policy. It is possible to limit access based on passwords,
client IP addresses, etc.
See the
.htaccess micro-howto and
Apache documentation
for more details.
For basic password authentication, you would use:
AuthType Basic
AuthName "Trac"
AuthUserFile /home/yourname/.htpasswd-myproject
Require valid-user
DirectoryIndex index.cgi
Create a new file named index.cgi in ~/www/myproject/,
containing:
#!/bin/sh
TRAC_ENV="/home/yourname/www/myproject"
export TRAC_ENV
exec /usr/local/share/trac/cgi-bin/trac.cgi
Finally, give index.cgi execute permissions:
$ chmod 700 ~/www/myproject/index.cgi
Your trac should now be accessible from the web.
|