Ilias Lazaridis wrote:
The documentaion mentions this:

http://projects.edgewall.com/trac/wiki/TracModPython#VirtualHostConfiguration

<VirtualHost * >
    DocumentRoot /var/trac/myproject
    ServerName trac.mycompany.com
    <Location />
        SetHandler mod_python
        PythonHandler trac.web.modpython_frontend
        PythonOption TracEnv /var/trac/myproject
        PythonOption TracUriRoot /
    </Location>
    <Location /login>
        AuthType Basic
        AuthName "MyCompany Trac Server"
        AuthUserFile /var/trac/myproject/.htusers
        Require valid-user
    </Location>
</VirtualHost>

-

Does this actually work somewhere?

I've tried it, but the /login location does not work.

Additionally, i've the location /svn, which does not work, too.

This is due to the fact that "<Location />" directs all URL's to mod_python.

Is there any way to deal with this?

I've found a strange workaround (see below):

but I have problems with the code browser:

http://case.lazaridis.com/browser/django/rework/evolve.py

seems that I have to add another location to the long list

any ideas?


<LocationMatch /(wiki|timeline|roadmap|browser|report|newticket|search|settings|about|login|logout|admin|query|trac) >
  SetHandler mod_python
  PythonHandler trac.web.modpython_frontend
  PythonOption TracEnv /var/...
  PythonOption TracUriRoot /
</LocationMatch>

<Location /login>
  AuthType Basic
  AuthName "TracRealm"
  AuthUserFile /var/...
  Require valid-user
</Location>

--
http://lazaridis.com

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

Reply via email to