Re: Custom indexing with autoindex

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux