Josh thanks for starting me off in the right
direction.I can now refine my question :-)

Im following the Apache::NavBar example in the Eagle
book.
Here is what my configuration looks like

<Directory />
    Options Indexes FollowSymLinks
    AllowOverride None
</Directory>

<Directory "/usr/local/apache/htdocs">
    Options Indexes FollowSymLinks ExecCGI
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

and

<Location />
  SetHandler  perl-script
  PerlHandler Apache::NavBar
  PerlSetVar  NavConf conf/navigation.conf
</Location>

after I add this last <Location> section to my
conf file, text, image and html content types are
handled fine (with NavBar placing a nav in my html
files), but Directory indexes become forbidden and
cgis get output as plain text. So Im guessing my
problem is more basic and related to my above
configuration.
Id like to know the generalized correct answer behind
this problem rather than binding NavBar to a more
restrive <Files "some_regex"> type of answer. i.e. Id
like to understand whats going on.

I've done a little bit of hunting in the archives,
I did try the
Options ExecCGI in the Location as per "My CGI/Perl
Code Gets Returned as Plain Text ..." in the Guide.
but I think the Directory Indexes becoming forbidden
evidences a more basic problem with my configuration
(and my lack of understanding thereof). 


thanks in advance


> [EMAIL PROTECTED] writes...
> 
> > Apache::NavBar from the Eagle book.
> >  When I use the example configuration
> >  <Location />
> >   etc
> > </Location>
> > it works, i.e. html files have a navbar placed in
> them,
> > but my other cgis come out as plain text.
> > I would like to rectify this and more importantly
> I
> > would like to understand why this is happening.
> 
> That's the spirit...
> 
> > there is a line in NavBar.pm
> > $r->content_type eq 'text/html' || return DECLINED
> > how does this work when I request a cgi as opposed
> to
> > an html file? I dont understand argh.
> 
> Try the following to figure out what is going on.
> $r->log_error("NavBar.pm : The content_type
> requested is ",$r->content_type);
> Place this right *before* the "|| return DECLINED"
> line.
> 
> -JoshNarins
> 
> (PS I'm no expert, just trying to field a question)


__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/

Reply via email to