You should define a CGI context with URI /trac.cgi/login, location is the same, pointing to trac.cgi, as the URL has been rewritten to "/trac.cgi/login", not "/projects/...." any more.
Just take a closer look at the Howto, it is possible to replace the CGI setup with FCGI setup, just add a FCGI...