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