On Tue, Dec 06, 2005 at 12:14:26PM -0500, Lou Kamenov wrote:

Hi Lou,

> On 06/12/05, Juergen Daubert <[EMAIL PROTECTED]> wrote:
> > On Mon, Dec 05, 2005 at 06:25:56PM +0000, Lou Kamenov wrote:
> > > On 04/12/05, Juergen Daubert <[EMAIL PROTECTED]> wrote:
> [..]
> > A Mathopd Alias can only be used together with a Location keyword
> > an maps a URI to a filesystem path, whereas a apache Location is
> > a control-block that get respected if a URI matches.
> 
> Location is a bit more general; If you check the manual you can do:
> 
> ...
> Alias /google
> Location http://www.google.com/
> ...
> 
> Though you have to add all the aliases you need.

Yes, I know about the redirect feature of the Location keyword, as
I think that I have a somewhat deep knowledege of all the keywords
mathopd has, but it doesn't help here ;-) 

> > In the above psydo-code the keyword PathMatch, which should be better
> > called UriMatch or so, is exactly that what apaches Location is.
> > A request to http://<hostname>/trac/login should be passed to the
> > trac.fcgi script with the pathinfo 'login' after authentification was
> > successful (see Mathopd's PathInfo keyword).
> 
> i.e. PathInfo should be /trac/login? or do you get only '/' or?
> 
> Hm I have Instiki running with mathopd without any problems without needing
> Apache's Location, see below:
> 
> Control {
>   ScriptUser daemon
>   Alias /
>   Location /path/to/instiki-ar/public
>   Specials {
>        CGI { dispatch.cgi }
>   }
>   IndexNames { dispatch.cgi }
> }

You can simplify this to the following, with the additional feature
that nobody can access files in / even if he knows the exact filename.

 Control {
   ScriptUser daemon
   Alias /
   Location /path/to/instiki-ar/public/dispatch.cgi
   Specials {
        CGI { * }
 }

Greetings
Juergen


-- 
Juergen Daubert  |  mailto:[EMAIL PROTECTED]  
Korb, Germany    |  http://jue.li/crux

Reply via email to