My apache vhost conf is pasted below. I want to set up something so I can serve a robots.txt. When I uncomment the DocumentRoot line, I can load robots.txt, but trac starts to fail in very strange ways.

Any suggestions for how to set up apache/modpython to serve trac from the root of a domain, yet also allow it to serve a robots.txt file?

Thanks in advance.

<VirtualHost w.x.y.z:80>
    ServerName trac.mydomain.com
    ErrorLog /home/myuser/var/log/trac/error_log
    CustomLog /home/myuser/var/log/trac/access combined

    #DocumentRoot /home/myuser/var/trac/htdocs

    # the app
    <Location />
        SetEnv PYTHON_EGG_CACHE "/home/myuser/var/trac/eggs"
        SetHandler mod_python
        PythonHandler trac.web.modpython_frontend
        PythonOption TracEnv "/home/myuser/var/trac"
    </Location>

    # the static files
    <Location /chrome>
        SetHandler default-handler
    </Location>
    Alias /chrome/common /usr/share/trac/htdocs
    <Directory /usr/share/trac/htdocs>
        Order allow,deny
        Allow from all
    </Directory>

    # the auth path
    <Location /login>
        AuthType Digest
        AuthName "Trac Login"
        AuthDigestDomain /
        AuthDigestFile /etc/apache2/htdigest
        AuthAuthoritative on
        Require user myuser
    </Location>

    # allow robots.txt through
    <Location /robots.txt>
        SetHandler default-handler
    </Location>
</VirtualHost>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to