Проблемы с настройкой trac для работы с Apache2

Я некоторое время пытался настроить trac для развертывания с помощью apache, и я столкнулся со стеной.

Я могу заставить его работать через 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, webmaster@localhost 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 v-host: (комментарии удалены)

<VirtualHost *:80>
        ServerAdmin webmaster@localhost

        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/

Кто-нибудь знает, что может происходить и что я должен сделать, чтобы это исправить? Спасибо!


person Casey Flynn    schedule 29.04.2011    source источник
comment
Проблема может заключаться в trac.fcgi, поэтому укажите это тоже. Хотя, если у вас есть выбор, я рекомендую запускать Trac с mod_wsgi.   -  person StackExchange saddens dancek    schedule 29.04.2011


Ответы (1)


Это на винде? Как отмечено в этом вопросе, запуск Python с FastCGI в Windows ограничен потерпеть неудачу.

Я рекомендую переключиться на mod_wsgi, что в любом случае рекомендуется.

person StackExchange saddens dancek    schedule 29.04.2011