Trac 설치중 Trac FAQ 2.7 항목이 잘되지 않습니다.

ogiwgi의 이미지

Trac 0.8.4
Clearsilver 0.9.14 binaries
Python 2.3.5
Apache 2.0.54
Subversion 1.2.0
Python 2.3 Bindings for subversion 1.2.0
docutils 0.3.9
SQLite 3.2.2
PySQLite 1.1.6-py2.3
Diffutils 2.8.7-1

질문 1.

윈도우 환경에서 trac 0.8.4를 설치하여 http://localhost/cgi-bin/trac.cgi 로 정상적으로 동작하는걸 확인하였습니다.

http://localhost/cgi-bin/trac.cgi
로 접속되는 주소를
http://localhost/trac로 바꾸려고 합니다.

Trac FAQ중 2.7 How can I create a nice URL to access trac.cgi? 를 참고하고 수정하고 있는데 trac 페이지가 정상적으로 뜨지 않습니다.
- wiki 페이지는 정상적으로 보이며 링크도 동작합니다.

이미지가 깨져서 보이고 css 파일이 적용이 안된걸로 생각이 됩니다.

http://localhost/cgi-bin/trac.cgi 으로 접속할때의 httpd.conf 는 아래와 같습니다.

# TRAC
Alias /trac "C:/Python23/share/trac/htdocs"

<Directory "C:/Python23/share/trac/htdocs">
  Options Indexes MultiViews
  AllowOverride None
  Order allow,deny
  Allow from all
</Directory>

<Location "/cgi-bin/trac.cgi">
  SetEnv TRAC_ENV "c:/svnrepo/trac.db"
</Location>

<Location "/cgi-bin/trac.cgi/login">
  AuthType Basic
  AuthName "TEST"
  AuthUserFile C:/svnrepo/.htaccess
  Require valid-user
</Location>

http://localhost/trac로 접속할때의 httpd.conf 는 아래와 같습니다.

# Map the Trac CGI into /trac/
ScriptAliasMatch ^/trac(.*) "C:/Program Files/Apache Group/Apache2/cgi-bin/trac.cgi$1"

# Tell Trac where its environment is stored
<Location "/trac">
  SetEnv TRAC_ENV "c:/svnrepo/trac.db"
</Location>

# Authenticate the user
<Location "/trac/login">
  AuthType Basic
  AuthName "Trac"
  AuthUserFile C:/svnrepo/.htaccess
  Require valid-user
</Location>

# Link the static files into /trac-static/
# You'll need to change the trac.ini to point to /trac-static/ instead of /trac/
Alias /trac-static/ "C:/Python23/share/trac/htdocs/"

# Allow access to the Trac static files
<Directory "C:/Python23/share/trac/htdocs">
  AllowOverride None
  Order allow,deny
  Allow from all
</Directory>

어떤 부분을 수정해야 하는지 도움 부탁드립니다.

질문 2.

Trac에서 소스 브라우저를 보면 아래와 같이 날짜와 시간 사이에 깨지는 부분이 보이는데 무슨 문제인지 관련 글을 찾을수가 없습니다.

Changeset 231
Timestamp: Wed Aug 17 20:04:27 2005 
Author: solee 

소스를 보면
Revision 231 (by solee, 2005-08-17 ??Ġ08:04:27) 

해결 방법 아시면 알려주세요. ^^

ktd2004의 이미지

정확한 내용은 아닙니다만 도움이 될까 싶어서 글 남깁니다.

날짜 데이타의 일부가 깨지는 문제는 여러 소프트웨어에서 발생하고 있습니다.
리눅스에서는 그러한 문제가 발생하지 않는데 윈도 환경에서 "오전"/"오후" 스트링을 제대로 처리하지 못해서 발생하는 문제로 알고 있습니다.

TortoiseSVN에서도 이 문제가 한동안 이슈화 되었습니다.
(지금은 해결되었고요.)

임시방편은 제어판의 시간표시 설정에서 "오전"/"오후"로 표기되는 것을 AM/PM이나 다른 날짜 형식으로 변경하시면 될 것 같습니다.