Hi, I have a problem with trac authentication. I have installed trac here: http://www.toolpart.hu/trac my applications directory is under: ~/webapps/trac I have added the trac using the webfaction panel. Then I wanted to set up trac to use multiple projects. So I have looked at the following documentation: http://wiki.webfaction.com/wiki/TracCgi I have created a ~/trac/projects directory added two projects using trac-admin. I have set os.environ['TRAC_ENV_PARENT_DIR'] = '~/trac/projects' in the trac.cgi file so it uses multiple projects. Then I checked the path: http://www.toolpart.hu/trac It has recognized these projects. Cool. Now I want to login and get the following error: Trac Error Authentication information not available. Please refer to the installation documentation. In the end of the documentation above I checked the LocationMatch section where I have the following line: AuthUserFile /somewhere/trac.htpasswd is this added to the main config file? Where should I put my .htpasswd file under which name in order to make this work? I didn't find a good documentation about this issue. Can you help me out? Regards, Laszlo asked 10 Dec '10, 06:23 Vékony László |
The problem is that when you add a Trac app to your site in our control panel, we generate the following web server config for your virtual host:
You can't override the Location directive in .htaccess, so you're stuck using that authentication setup. As a workaround, you can serve your Trac app as a regular static/CGI/PHP app. Just create a new 'symbolic link to static/cgi/php application' in the control panel, using the path to your existing Trac app in the "extra info" field (eg You'll also need to create a
That way, our control panel will configure the app as a regular CGI app and will not generate any Trac-specific configuration, which means you're free to set up your authentication however you need it. Hope that helps! answered 10 Dec '10, 10:51 seanf |