httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Warhurst, SI (Spencer) " <S.I.Warhu...@rl.ac.uk>
Subject RE: [users@httpd] Directory listing
Date Fri, 20 Dec 2002 11:36:38 GMT
Another problem with these directory indexes is that if there is a .htaccess
in the directory being indexed (all it has in it are AddDescription lines)
the "Name, Last modified, Size, Description" headings disappear, as do the
date & size by each file <sigh>.

--
Spencer Warhurst
Listserv Service Manager

JISCmail -> http://www.jiscmail.ac.uk
Mailtalk -> http://www.mailtalk.ac.uk


> -----Original Message-----
> From: Rodent of Unusual Size [mailto:Ken.Coar@Golux.Com]
> Sent: 19 December 2002 17:04
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Directory listing
> 
> 
> "Warhurst, SI (Spencer)" wrote:
> > 
> > So, how would I replace "header.html" with a CGI to look the
> > same but include the path?
> 
> headername /cgi-bin/header.cgi
> addtype text/html;charset=iso-8859-1 .cgi
> 
> header.cgi:
> 
> #! /bin/perl -w
> use strict;
> 
> my $here = $ENV{'REQUEST_URI'};
> $here =~ s:/$::;
> 
> print "Content-type: text/html;charset=iso-8859-1\n"
>     . "\n"
>     . "<html>\n"
>     . " <head>\n"
>     . "  <title>Index of $here</title>\n"
>     . " </head>\n"
>     . " <body>\n"
>     . "  <h1>Index of $here</h1>\n";
> exit(0);
> 
> that's just off the top of my head.
> 
> ---------------------------------------------------------------------
> 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
> 

---------------------------------------------------------------------
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