Tracをmod_wsgiでセットアップしましたが、私はプロジェクトにアクセスできない以外はすべてうまくいくようです。私はログインした後、プロジェクトのリストを正常に見ることができますが、プロジェクトのいずれかをクリックしようとするとTracは無期限にハングします。Tracのプロジェクトリンクが無期限にSSLでハングアップ
ポート80で同じApache設定を実行すると、すべて正常に動作します。しかし私はポート80でそれを望んでいません。私は自分の証明書を生成しました。私のセットアップに何が間違っているのか分かりませんか?ここで
は私が撮った一般的な手順は次のとおりです。https://www.myserver.com/trac
に行く
cd /etc/apache2/sites-available
vi default-ssl
a2ensite default-ssl
/etc/init.d/apache2 restart
はTracのプロジェクトの私のリストを示します。
trac hangingでこれらの結果のいずれかをクリックします。つまり、https://www.myserver.com/trac/project1
がハングします。
サイト-利用可能/デフォルト-SSL:HTTPと
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin [email protected]
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
# Trac settings
WSGIScriptAlias /trac /var/lib/trac/apache/trac.wsgi
<Directory /var/lib/trac/apache>
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
# Trac authentication stuff
<Location /trac>
AuthName "Trac login"
AuthType Basic
AuthUserFile /var/lib/trac/.htpasswd
require valid-user
</Location>
# Trac mod_rewrite rules
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteLog "/var/lib/trac/logs/rewrite.log"
RewriteLogLevel 9
# Don't let DirectoryIndex mess with Trac installed in the root
RewriteCond %{REQUEST_URI} ^/$
RewriteRule . /trac [QSA,PT,L]
# Don't let Trac handle existing directories, files or aliases
RewriteCond /var/lib/trac%{REQUEST_FILENAME} !-d
RewriteCond /var/lib/trac%{REQUEST_FILENAME} !-f
# prepend /trac to URI and append Query String, Pass-Through to xxxAlias directives, Last rule.
RewriteRule ^(.*)$ /trac$1 [QSA,PT,L]
</IfModule>
....
</VirtualHost>
</IfModule>
テストTracは正常に動作します:
のhttpd.conf:
WSGIScriptAlias /trac /var/lib/trac/apache/trac.wsgi
<Directory /var/lib/trac/apache>
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
<Location /trac>
AuthType Basic
AuthName "Trac login"
AuthUserFile /var/lib/trac/.htpasswd
Require valid-user
</Location>