Opened 4 years ago

Closed 4 years ago

#60733 closed defect (fixed)

No handler matched request to /login

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

Description

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 4 years ago by neverpanic (Clemens Lang)

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

Maybe we need to set the auth_path_prefix option (see https://github.com/trac-hacks/trac-github/pull/127/files) 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 4 years 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  
    8686
    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|http://trac.macports.org/"
    9094       ProxyPassReverse / "unix:/run/trac/socket|http://trac.macports.org/"
    9195       RequestHeader set X-Forwarded-Proto "https"
Note: See TracTickets for help on using tickets.