2011-04-29 6 views
3

저는 trac을 아파치와 함께 배포 할 준비를하고 있습니다. 지금은 벽에 걸려 있습니다.Trac을 Apache2와 함께 사용하는 데 문제가 있습니다.

tracd를 통해 작동하도록 할 수는 있지만 여러 프로젝트가있을 것이며 trac 연결에 TSL을 사용하려고 할 수 있습니다.

는이 내 아파치 V 호스트 파일입니다

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 

내 서버로부터 수신하고있어 반응이다 (댓글 삭제)

<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'에있을 수 있으므로 포함 시키십시오. 선택의 여지가 있다면 Trac을 ['mod_wsgi'] (http://trac.edgewall.org/wiki/TracModWSGI)와 함께 실행하는 것이 좋습니다. – dancek

답변

3

Windows 버전인가요? this question에서 언급했듯이 Windows에서 FastCGI를 사용하여 Python을 실행하면 오류가 발생합니다.

어쨌든 권장 방법 인 mod_wsgi으로 전환하는 것이 좋습니다.

관련 문제