On Dec 4, 10:55 am, "Panos Savvas" <[EMAIL PROTECTED]> wrote: > Hi Graham, > > Thanks for the advice. I will try this out tomorrow. > > > Its presence in the root context is possibly what is causing the problem. > > I suppose this is typical of trying to configure 3 new technologies (new to > me) at once. > I assumed that referencing the AuthzSVNAccessFile in the root context would > mean that it is inherited by all other contexts. > This seems to be supported in that the authorisation works in all other > contexts. Is this a flawed assumption however?
The presence of AuthzSVNAccessFile is likely enough to trigger Subversion Apache authorisation handler for all URLs, but that handler is then expecting SVNPath to have also been defined in the same context, which it isn't. Thus possibly why you are getting an error. If this is the case, accessing stuff outside of /trac would also result in the same error. > I am going to have several projects/trac environments eventually and am > trying to have a single configuration for authorisation, i.e path based > permissions. But are you wanting to also expose Subversion repository through Apache so you can do checkouts over the network? If not, you don't need the SVNPath stuff nor the Subversion authorisation checks. Graham > However currently my svn access file only has one generic entry. Could this > be the problem? Would have the svn access file formated with paths > potentially make this strategy succeed? I will experiment at work tomorrow > and let you know how I am doing. Meanwhile any more advice is appreciated :) > > Thanks again. > > Panos > > On Dec 3, 2007 9:58 PM, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > > > > > On Dec 1, 1:27 am, Panos <[EMAIL PROTECTED]> wrote: > > > Hi everyone, > > > > I am new to trac/svn/apache but have configured a basic setup of the > > > free and am very impressed. > > > I have one question at the moment which is confussing me: > > > > I have had to add the SVNPATH to my "trac" location in httpd.conf, > > > which seems strange. If not the error log complains that it is > > > missing. Does this mean anything to you? It took me a while to figure > > > this out as I have not seen this mentioned anywhere online. However it > > > does fix it. > > > Why do you have: > > > AuthzSVNAccessFile "C:\Program Files\Apache Group > > \Apache2\svnaccessfile.txt" > > > defined at '/' context and not '/TestProject'? > > > Its presence in the root context is possibly what is causing the > > problem. > > > Graham > > > > Please see excerpts from httpd.conf and trac.ini below > > > > Versions: > > > trac 0.10.4 > > > apache 2.0.6x > > > svn 1.45 > > > > files: > > > ########### TRAC.INI ############## > > > [trac] > > > authz_file = > > > authz_module_name = > > > base_url = > > > check_auth_ip = true > > > database = sqlite:db/trac.db > > > default_charset = iso-8859-15 > > > default_handler = WikiModule > > > htdocs_location = > > > ignore_auth_case = false > > > mainnav = wiki,timeline,roadmap,browser,tickets,newticket,search > > > metanav = login,logout,settings,help,about > > > permission_store = DefaultPermissionStore > > > repository_dir = c:\Projects\svn\TestProject > > > repository_type = svn > > > > ########### httpd.conf ############## > > > <Location /> > > > AuthType SSPI > > > AuthName "TestProject" > > > SSPIAuth On > > > SSPIAuthoritative On > > > SSPIDomain groupinfra.com > > > SSPIOfferBasic On > > > #SSPIOmitDomain on //**this makes things a lot easier** > > > #SSPIUsernameCase lower > > > SSPIBasicPreferred On > > > SSPIOfferSSPI off > > > AuthzSVNAccessFile "C:\Program Files\Apache Group > > > \Apache2\svnaccessfile.txt" > > > Require valid-user > > > </Location> > > > #SVN > > > <Location /TestProject> > > > DAV svn > > > #SVNListParentPath on > > > SVNPath C:\Projects\svn\TestProject > > > #SVNParentPath C:\Projects\svn > > > </Location> > > > > #TRAC > > > <Location /tracs> # the top level url that hosts multiple projects > > > SetHandler mod_python > > > PythonHandler trac.web.modpython_frontend > > > PythonOption TracEnv C:\Projects\trac\TestProject > > > PythonOption TracUriRoot /tracs > > > SVNPath C:\Projects\svn\TestProject > > > </Location> > > > > If i remove the SVNPath from the /tracs location the following occurs > > > in the error.log when I try to navigate to the trac website: > > > > [Fri Nov 30 14:13:40 2007] [error] [client 127.0.0.1] The server is > > > misconfigured: either an SVNPath or SVNParentPath directive is > > > required to specify the location of this resource's repository. [500, > > > #190000] > > > > It seems to be working, however it makes not much sense, and I am > > > worried it will cause issues > > > later > > > > Thanks > > > > Panos --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
