Opened 11 days ago

Closed 8 days ago

#60733 closed defect (fixed)

No handler matched request to /login

Reported by: ryandesign (Ryan Schmidt) Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: trac Version:
Keywords: Cc:


I had been logged into Trac but when I visited the new ticket URL it said "You are currently not logged in. You may want to do so now." My login session must have expired. So I clicked the "do so" link but that led to a page that just said "No handler matched request to /login". Our actual GitHub login URL is /github/login but I thought we had a redirect in place from /login.

Change History (2)

comment:1 Changed 8 days ago by neverpanic (Clemens Lang)

Owner: changed from admin@… to neverpanic
Status: newaccepted

Maybe we need to set the auth_path_prefix option (see to an empty string. On the other hand, Rainer actually wrote in that specific PR that we're currently redirecting in the webserver, so I guess that was broken by our change to run trac in gunicorn.

comment:2 Changed 8 days ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: acceptedclosed

I've fixed this now:

  • apache2/sites-available/trac.conf

    diff --git a/apache2/sites-available/trac.conf b/apache2/sites-available/trac.conf
    index fe01286..b789545 100644
    a b  
    8787       # Proxy to gunicorn, but do not proxy .well-known needed for letsencrypt
    8888       ProxyPass /.well-known/ !
     89       ProxyPass /login !
     90       ProxyPass /news !
     91       ProxyPass /post !
     92       ProxyPass /feeds/post/macports !
    8993       ProxyPass / "unix:/run/trac/socket|"
    9094       ProxyPassReverse / "unix:/run/trac/socket|"
    9195       RequestHeader set X-Forwarded-Proto "https"
Note: See TracTickets for help on using tickets.