On 2005/12/30, at 上午 11:52, Matthew Good wrote:

The <Location> block for the login needs to match the URL you access to

login.  In your case this would need to be "/trac.cgi/login" not

"/trac/login".


I changed it but now I get a 500 error. My error log has the following problem:

---------------------------------------------------------------------------------------------------------------------
[Fri Dec 30 13:16:30 2005] [error] [client 127.0.0.1] The server is misconfigure
d: either an SVNPath or SVNParentPath directive is required to specify the locat
ion of this resource's repository.  [500, #190000], referer: http://localhost/tr
ac.cgi/about
---------------------------------------------------------------------------------------------------------------------

This information is configure already in my dav_svn.conf file. The normal "Browse Source" url (from Trac) works fine. 

Do I need to add it to my virtual host as well?

-Sean

I'm just replying to my own post for completeness. I needed to add the following to my authentication file. 

        <Location "/trac.cgi/login">
            AuthType Basic
            AuthName "Trac"
            AuthUserFile /etc/apache2/dav_svn.passwd
            Require valid-user
        </Location>

and add permissions using trac-admin. Then everything was OK. 

Thanks Matthew for the help!

-Sean


_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to