Edgewall Software

Changes between Initial Version and Version 1 of Ticket #2371


Ignore:
Timestamp:
Nov 17, 2005, 7:50:26 PM (17 years ago)
Author:
Matthew Good
Comment:

(fixing description)

The workaround suggested above seems reasonable since a 401 response will prompt the browser to display a login dialog so the page would never be seen by a user.

I guess another option is for Trac to provide a request handler for /error/HTTP_UNAUTHORIZED.html.var that would simply return a 401 response. I think we'll need to check with some Apache devs on this to see if there's a cleaner solution.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2371 – Description

    initial v1  
    44
    55apache2 -v output:
     6{{{
    67Server version: Apache/2.0.54
    78Server built:   Sep  5 2005 11:11:08
     9}}}
    810
    911Trac-admin output:
     
    1517Apache2 config part which creates the odd situation:
    1618
     19{{{
    1720<IfModule mod_negotiation.c>
    1821<IfModule mod_include.c>
     
    5053</IfModule>
    5154</IfModule>
     55}}}
    5256
    5357I use this apache virtual host config for trac:
    54 
     58{{{
    5559<VirtualHost *:443>
    5660        ServerName sub.domain.com
     
    6367
    6468        SSLOptions +StdEnvVars
    65 
    66        
    6769
    6870        Alias /trac /usr/share/trac/htdocs/
     
    9193
    9294</VirtualHost>
    93 
     95}}}
    9496
    9597When I have it like this Trac issues this error when I want to login:
     98{{{
    9699No handler matched request to /error/HTTP_UNAUTHORIZED.html.var
     100}}}
    97101
    98102When I comment out this line in the apache config part:
     103{{{
    99104ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
     105}}}
    100106
    101107It works OK.
    102108
    103109A workaround which I got is adding this line in my virtualhost:
     110{{{
    104111ErrorDocument 401 default
     112}}}
    105113
    106114Then things will work Ok.
    107115
    108116Hope someone can research this.
    109 
    110