httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dermot Paikkos" <der...@sciencephoto.com>
Subject Re: [users@httpd] Custom indexing with autoindex
Date Thu, 25 Jan 2007 15:53:05 GMT
On 25 Jan 2007 at 15:38, Beginner wrote:

> On 25 Jan 2007 at 10:20, Joshua Slive wrote:
> 
> > On 1/25/07, Beginner <dermot@sciencephoto.com> wrote:
> 
> > > However my efforts to make HeaderName a cgi-script are failing. Is
> > > this because I would need to generate the entire index from CGI
> > > rather than from mod_autoindex?
> > 
> > Did you read
> > http://httpd.apache.org/docs/2.2/mod/mod_autoindex.html#headername
> > where it says:
> 
> Yes I did. I came up with this (and other variations)
> 
> <Directory /data/www/*/html>
>         Options +Includes +Indexes
>     IndexOptions FancyIndexing IgnoreCase SuppressHTMLPreamble
> #	   AddIcon /spl-icons/folder.png ^^DIRECTORY^^
>         AddType text/html .pl
>         HeaderName /scanning-cgi/idx_footer.pl
> </Directory>
> 
> 
> idx_footer.pl prints out it's header as 'text/html'. So I am not sure
> why it not working. The AddIcon option does work when enabled.
> 


Fixed, I wasn't setting the option in the correct place. My config 
looks like this now:


<Directory /data/www/templates>
        Options +Includes
        AddType text/html .pl
        HeaderName /cgi-bin/idx_footer.pl
</Directory>

<Directory /www/*/html>
        Options +Indexes
        AddIcon /icons/folder.png ^^DIRECTORY^^
</Directory>


The first Directory enables the cgi/pl and when visits to the 
directory path /www/*/html/ use the idx_footer.pl script to carry 
varibles.

Thanx,
Dp.



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message