2011-04-29 56 views
3

我一直在嘗試設置trac以便與apache部署一段時間,現在我正在跑進一堵牆。配置Trac與Apache2配合工作的麻煩

我可以通過tracd工作,但我可能會有多個項目,我可能想使用TSL連接到trac。

這是我從我的服務器接收響應

Internal Server Error 

The server encountered an internal error or misconfiguration and was unable to complete your request. 

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error. 

More information about this error may be available in the server error log. 

Apache/2.2.14 (Ubuntu) Server at ***.***.***.*** Port 80 

這是我的Apache抗宿主文件:(評論刪除)

<VirtualHost *:80> 
     ServerAdmin [email protected] 

     DirectoryIndex index.html 
     DocumentRoot /home/***/public_html/app/public 
     Alias /trac/chrome/common /home/***/trac/htdocs/common 
     Alias /trac/chrome/site /home/***/trac/htdocs/common 
     ScriptAlias /trac /home/***/trac/cgi-bin/trac.fcgi/ 

     DefaultInitEnv TRAC_ENV /home/***/trac 

     <Location "/trac"> 
       SetEnv TRAC_ENV_PARENT_DIR "home/***/" 
     </Location> 

     <Directory "/home/***/trac/htdocs"> 
       Order allow,deny 
       Allow from all 
     </Directory> 

     <Location "/trac/chrome/common"> 
       SetHandler none 
     </Location> 

     ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ 
     <Directory "/usr/lib/cgi-bin"> 
       AllowOverride None 
       Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch 
       Order allow,deny 
       Allow from all 
     </Directory> 

     ErrorLog /home/***/public_html/app/log/error.log 

     # Possible values include: debug, info, notice, warn, error, crit, 
     # alert, emerg. 
     LogLevel debug 

     CustomLog /home/***/public_html/app/log/access.log combined 


     CustomLog /home/casey/public_html/app/log/access.log combined 

</VirtualHost> 

這是我的服務器的錯誤日誌:

[Fri Apr 29 02:09:06 2011] [warn] [client **.**.**.**] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server 
[Fri Apr 29 02:09:06 2011] [error] [client **.**.**.**] Premature end of script headers: trac.fcgi 
[Fri Apr 29 02:09:06 2011] [debug] mod_deflate.c(615): [client **.**.**.**] Zlib: Compressed 618 to 384 : URL /trac/ 
[Fri Apr 29 02:09:08 2011] [warn] [client **.**.**.**] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server 
[Fri Apr 29 02:09:08 2011] [error] [client **.**.**.**] Premature end of script headers: trac.fcgi 
[Fri Apr 29 02:09:08 2011] [debug] mod_deflate.c(615): [client **.**.**.**] Zlib: Compressed 618 to 384 : URL /trac/ 

有誰知道可能會發生什麼,我該怎麼辦才能解決它?謝謝!

+0

這個問題可能出現在'trac.fcgi'中,所以請包括這個。儘管如果你有選擇,我建議使用['mod_wsgi'](http://trac.edgewall.org/wiki/TracModWSGI)來運行Trac。 – dancek 2011-04-29 08:50:04

回答

3

這是在Windows上嗎?正如在this question中指出的那樣,在Windows上使用FastCGI運行Python必然會失敗。

我建議切換到mod_wsgi這是推薦的方法。