httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Eror <>
Subject [users@httpd] Yet another newb :-)
Date Thu, 08 May 2003 00:15:15 GMT


  I have no idea if this is possible or not, but I'm trying to give somone
access to files that live outsite the DOCUMENT_ROOT.

 Right now I have something like:

 my $host = $ENV{'HTTP_HOST'};
$host =~ s/^www\.//;
@files = `ls /var/www/logs/$host.*`;
@fullpath = @files;

foreach my $fullpath(@fullpath) {
        my @path_parts = split '/', $fullpath;
        my $log = $path_parts[-1];
        print "<a href='$fullpath'>$log</a href><br>\n";

[Wed May  7 17:02:43 2003] [error] [client] File does not
exist: /usr/home/jeanpaul/public_html/var/www/logs/

Is what I am trying to do even possible? if so any hints?


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message