0
我需要将Trac放在除/以外的URL路径上。如果我从http://trac.edgewall.org/wiki/TracOnUbuntu获取配置并修改位置块,则会收到错误消息“没有与/ trac匹配的处理程序请求”。我怎样才能避免这种情况?Trac在Apache2 Web服务器上的子位置
<VirtualHost *:80>
ServerName trac.local
<Location /trac> # instead of Location/
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /var/local/trac
PythonOption TracEnvParentDir /var/local/trac
PythonOption TracUriRoot/
PythonOption TracEnv /var/local/trac
# PythonOption TracEnvIndexTemplate /var/local/trac/templates/index-template.html
PythonOption TracLocale en_US.UTF8
PythonOption PYTHON_EGG_CACHE /tmp
Order allow,deny
Allow from all
</Location>
<Location /trac/login> # instead of /login
AuthType Basic
AuthName "myproject"
AuthUserFile /var/local/trac/.htpasswd
Require valid-user
</Location>
</VirtualHost>
谢谢,我没有想到这个选项。现在它可以工作。 @deprecated:我刚刚做了一个全新的Trac设置,并遵循TracOnUbuntu维基上的说明(http://trac.edgewall.org/wiki/TracOnUbuntu)。它并没有说明这不是推荐的与Apache一起建立Trac的方式。 – ideaboxer 2013-03-20 14:24:05
当然,只是大部分内容的年龄都是在反对那个维基页面过于严肃的时候。 – hasienda 2013-03-20 22:33:04
10个月不是真的老。 – ideaboxer 2013-03-21 14:13:56