[Trac] Re: adding a left side menu...

Matthew Good trac at matt-good.net
Thu Mar 3 11:37:57 EST 2005


On Thu, 2005-03-03 at 08:10 -0800, bruce wrote: 
> but matt..
> 
> i still don't know where the login comes from...
> 
> does trac provide this page...
> 
> do i provide this page...
> 
> does apache provide it...
> 
> i mean... i just can't type "http://foo/login" and have a login page popup
> from an apache served web site..!!

The URL is sort of handled by both Apache and Trac.

The simple answer is that you don't need an actual directory called
login on your harddrive.

In more detail:
Apache uses the <Location> blocks to apply certain rules when handling a
URL.  When a requested URL matches the login location, Apache sees that
it should require authentication.  Then based on the
<Location /projects> rule, Apache calls the Trac Python code to process
the URL.  Trac gets your username from Apache and logs you in.

-- 
Matthew Good <trac at matt-good.net>



More information about the Trac mailing list