У меня странная проблема с моей установкой redmine / lighttpd под Ubuntu 11.10. Я установил и настроил Redmine, и он работает, как и должно быть, но: все работает нормально, за исключением того, что все файлы javascript в / javascripts не найдены !? Но все в "/ stylesheets" или "/ themes" загружается правильно.
Странно то, что когда я вызываю «myserver.com/javascripts/», он возвращает 404. Если я копирую каталог javascripts в «js» и вызываю «myserver.com/js/», я получаю список каталогов от lighttpd !
Это мой lighttpd.conf для моей установки redmine:
$HTTP["host"] == "myserver.com" {
server.document-root = "/var/www/redmine/public/"
server.indexfiles = ( "dispatch.fcgi" )
server.error-handler-404 = "/dispatch.fcgi"
server.errorlog = "/var/log/lighttpd/redmine/error.log"
accesslog.filename = "/var/log/lighttpd/redmine/access.log"
fastcgi.server = ( ".fcgi" =>
((
"bin-path" => "/var/www/redmine/public/dispatch.fcgi",
"socket" => "/tmp/ruby-rails.socket",
"max-procs" => 5,
"idle-timeout" => 20,
"bin-environment" => (
"RAILS_ENV" => "production",
"RAILS_ROOT" => "/var/www/redmine"
),
))
)
}
Есть идеи ???
Edit:
Я поместил debug.log-request-processing = "enable" в моем lighttpd.conf.
Я получаю это для вызова "/ stylesheets":
2011-12-01 11:25:58: (response.c.300) -- splitting Request-URI
2011-12-01 11:25:58: (response.c.301) Request-URI : /stylesheets/
2011-12-01 11:25:58: (response.c.302) URI-scheme : http
2011-12-01 11:25:58: (response.c.303) URI-authority: redmine.musik-sammler.de
2011-12-01 11:25:58: (response.c.304) URI-path : /stylesheets/
2011-12-01 11:25:58: (response.c.305) URI-query :
2011-12-01 11:25:58: (response.c.349) -- sanatising URI
2011-12-01 11:25:58: (response.c.350) URI-path : /stylesheets/
2011-12-01 11:25:58: (response.c.470) -- before doc_root
2011-12-01 11:25:58: (response.c.471) Doc-Root : /var/www/redmine/public/
2011-12-01 11:25:58: (response.c.472) Rel-Path : /stylesheets/
2011-12-01 11:25:58: (response.c.473) Path :
2011-12-01 11:25:58: (response.c.521) -- after doc_root
2011-12-01 11:25:58: (response.c.522) Doc-Root : /var/www/redmine/public/
2011-12-01 11:25:58: (response.c.523) Rel-Path : /stylesheets/
2011-12-01 11:25:58: (response.c.524) Path : /var/www/redmine/public/stylesheets/
2011-12-01 11:25:58: (response.c.541) -- logical -> physical
2011-12-01 11:25:58: (response.c.542) Doc-Root : /var/www/redmine/public/
2011-12-01 11:25:58: (response.c.543) Rel-Path : /stylesheets/
2011-12-01 11:25:58: (response.c.544) Path : /var/www/redmine/public/stylesheets/
2011-12-01 11:25:58: (response.c.561) -- handling physical path
2011-12-01 11:25:58: (response.c.562) Path : /var/www/redmine/public/stylesheets/
2011-12-01 11:25:58: (response.c.569) -- file found
2011-12-01 11:25:58: (response.c.570) Path : /var/www/redmine/public/stylesheets/
2011-12-01 11:25:58: (response.c.719) -- handling subrequest
2011-12-01 11:25:58: (response.c.720) Path : /var/www/redmine/public/stylesheets/
2011-12-01 11:25:58: (mod_indexfile.c.150) -- handling the request as Indexfile
2011-12-01 11:25:58: (mod_indexfile.c.151) URI : /stylesheets/
2011-12-01 11:25:58: (mod_compress.c.683) -- handling file as static file
2011-12-01 11:25:58: (mod_dirlisting.c.922) -- handling the request as Dir-Listing
2011-12-01 11:25:58: (mod_dirlisting.c.923) URI : /stylesheets/
2011-12-01 11:25:58: (response.c.731) -- subrequest finished
И это для вызова "/ javascripts":
2011-12-01 11:24:38: (response.c.300) -- splitting Request-URI
2011-12-01 11:24:38: (response.c.301) Request-URI : /javascripts/
2011-12-01 11:24:38: (response.c.302) URI-scheme : http
2011-12-01 11:24:38: (response.c.303) URI-authority: redmine.musik-sammler.de
2011-12-01 11:24:38: (response.c.304) URI-path : /javascripts/
2011-12-01 11:24:38: (response.c.305) URI-query :
2011-12-01 11:24:38: (response.c.349) -- sanatising URI
2011-12-01 11:24:38: (response.c.350) URI-path : /javascripts/
2011-12-01 11:24:38: (response.c.470) -- before doc_root
2011-12-01 11:24:38: (response.c.471) Doc-Root : /var/www/redmine/public/
2011-12-01 11:24:38: (response.c.472) Rel-Path : /javascripts/
2011-12-01 11:24:38: (response.c.473) Path :
2011-12-01 11:24:38: (response.c.521) -- after doc_root
2011-12-01 11:24:38: (response.c.522) Doc-Root : /var/www/redmine/public/
2011-12-01 11:24:38: (response.c.523) Rel-Path : /javascripts/
2011-12-01 11:24:38: (response.c.524) Path : /var/www/redmine/public/javascripts/
2011-12-01 11:24:38: (response.c.541) -- logical -> physical
2011-12-01 11:24:38: (response.c.542) Doc-Root : /var/www/redmine/public/
2011-12-01 11:24:38: (response.c.543) Rel-Path : /javascripts/
2011-12-01 11:24:38: (response.c.544) Path : /usr/share/javascripts/
2011-12-01 11:24:38: (response.c.561) -- handling physical path
2011-12-01 11:24:38: (response.c.562) Path : /usr/share/javascripts/
2011-12-01 11:24:38: (response.c.618) -- file not found
2011-12-01 11:24:38: (response.c.619) Path : /usr/share/javascripts/
2011-12-01 11:24:38: (response.c.300) -- splitting Request-URI
2011-12-01 11:24:38: (response.c.301) Request-URI : /dispatch.fcgi
2011-12-01 11:24:38: (response.c.302) URI-scheme : http
2011-12-01 11:24:38: (response.c.303) URI-authority: redmine.musik-sammler.de
2011-12-01 11:24:38: (response.c.304) URI-path : /dispatch.fcgi
2011-12-01 11:24:38: (response.c.305) URI-query :
2011-12-01 11:24:38: (response.c.349) -- sanatising URI
2011-12-01 11:24:38: (response.c.350) URI-path : /dispatch.fcgi
2011-12-01 11:24:38: (response.c.470) -- before doc_root
2011-12-01 11:24:38: (response.c.471) Doc-Root : /var/www/redmine/public/
2011-12-01 11:24:38: (response.c.472) Rel-Path : /dispatch.fcgi
2011-12-01 11:24:38: (response.c.473) Path :
2011-12-01 11:24:38: (response.c.521) -- after doc_root
2011-12-01 11:24:38: (response.c.522) Doc-Root : /var/www/redmine/public/
2011-12-01 11:24:38: (response.c.523) Rel-Path : /dispatch.fcgi
2011-12-01 11:24:38: (response.c.524) Path : /var/www/redmine/public/dispatch.fcgi
2011-12-01 11:24:38: (response.c.541) -- logical -> physical
2011-12-01 11:24:38: (response.c.542) Doc-Root : /var/www/redmine/public/
2011-12-01 11:24:38: (response.c.543) Rel-Path : /dispatch.fcgi
2011-12-01 11:24:38: (response.c.544) Path : /var/www/redmine/public/dispatch.fcgi
2011-12-01 11:24:38: (response.c.561) -- handling physical path
2011-12-01 11:24:38: (response.c.562) Path : /var/www/redmine/public/dispatch.fcgi
2011-12-01 11:24:38: (response.c.569) -- file found
2011-12-01 11:24:38: (response.c.570) Path : /var/www/redmine/public/dispatch.fcgi
2011-12-01 11:24:38: (response.c.719) -- handling subrequest
2011-12-01 11:24:38: (response.c.720) Path : /var/www/redmine/public/dispatch.fcgi
2011-12-01 11:24:38: (mod_compress.c.683) -- handling file as static file
2011-12-01 11:24:38: (mod_fastcgi.c.3703) handling it in mod_fastcgi
Почему этот переход с / var / www / redmine на / usr / share ?????