2012-02-24 115 views
0

我使用mod_wsgi設置了Trac,並且除了無法訪問項目之外,其他都看起來不錯。我可以在登錄後成功查看項目列表,但如果嘗試點擊任何項目,Trac將無限期地掛起。Trac項目鏈接通過SSL無限期掛起

如果我通過端口80運行相同的Apache設置,一切運行良好。不過,我不希望它通過端口80.我還生成了我自己的證書,我正在使用它。我無法發現我的設置出了什麼問題?

下面是我的一般步驟:

cd /etc/apache2/sites-available 
vi default-ssl 
a2ensite default-ssl 
/etc/init.d/apache2 restart 


https://www.myserver.com/trac顯示我的TRAC項目的清單。
點擊trac掛起的任何結果。即,https://www.myserver.com/trac/project1掛起。

網站可用/默認的SSL:

<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與HTTP工作得很好:

的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> 

回答

0

要知道,這真的很奇怪。我決定重新加載頁面。這一次,我得到了標準的未經驗證的證書問題,我接受...

現在trac已經完全加載。所以現在很好。

我以爲我已經接受過證書。這很奇怪!