Hi Graham, On 15 Sep., 02:11, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Sep 15, 2:16 am, Robert Waltemath <[EMAIL PROTECTED]> > wrote: > > > Hello, > > > I use the following Apache 2.2.3/ mod_python 3.2.10/ Trac 0.10.4 > > configuration: > > > <VirtualHost someip:80> > > ServerName myserver.net > > DocumentRoot /srv/test/docroot > > > <Location /trac> > > Order Allow,Deny > > Allow from all > > > SetHandler mod_python > > PythonHandler trac.web.modpython_frontend > > PythonOption TracEnv /srv/test/project > > PythonOption TracUriRoot /trac > > </Location> > > </VirtualHost> > > > Trac is just working fine, but in Apache error log lines like the > > following show up for every request: > > > [error] client denied by server configuration: /srv/test/docroot/ > > roadmap, referer:http://myserver.net/trac/roadmap > > This is generated by mod_authz_host. You must have outside of your > VirtualHost a restriction on access from certain hosts, or you have > the Order/Deny directives set too restrictively as default and haven't > opened it up for document root. When someone access outside of /trac, > ie., / or /somefile, then the restrictions are applying.
Yes, right, mod_authz_host by default denies access to the whole filesystem. In this case the DocumentRoot is fake (though it exists) as I don't want it to be accessible. I only want some special locations like "/trac" to work. But when I access e.g. http://myserver.net/trac/roadmap I get an error for /srv/test/docroot/roadmap (and some more for /srv/ test/docroot/chrome..., one for each request), which means that somebody must have tried to access http://myserver.net/roadmap (or the filesystem location directly) AND trac is working, though there is an access-denied error. One could say that I should just ignore the error if everything is working fine, but who wants strange error messages in their logs? :) robert --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
