www-mirrors mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henk P. Penning" <he...@cs.uu.nl>
Subject Re: New Mirror Layout
Date Tue, 13 Nov 2001 09:12:05 GMT
On Tue, 13 Nov 2001, Andrew Kenna wrote:

> Date: Tue, 13 Nov 2001 14:50:04 +1100
> From: Andrew Kenna <andrewk@stamina.com.au>
> To: "'mirrors@apache.org'" <mirrors@apache.org>
> Subject: New Mirror Layout
> Sender: mirrors-return-431-henkp=cs.uu.nl@apache.org
> 
> Has anyone else had a chance to check out the draft new look mirror web
> pages on http://www.apache.org/~andrewk/ ? I have only recieved 5 emails
> with suggestions and I know there's heaps more people out there who wanted
> this sorta thing to happen.
> 
> Put your 2 cents worth in and I will try and get it up as quickly as
> possible

Andrew,

  -- Great stuff; thanks.

  -- I can't read the faq; I assumed you were working on it.

  -- requirements: the apache mirror must reside in "/".
     The local mirror is refered to in index.html as

       <a href="/dist/">from here</a>

  -- The archivelist.html shows the various archives. Good.
     However, there are dependencies: some are included in
     others. How can you mirror 'all' without ducplicates?
     How can you mirror 'all' without 'jakarta'?

  -- At one time or another we had to throw in an extra
     --exclude=shadow/ --exclude=bugs/ to avoid problems.
     Using '--safe-links' is advisable.

  -- The 'jakarta-site' and 'xml-site' account for 80.7%
     of the archive size. I only looked at the 'jakarta'
     stuff and it is 99% useless for 99.999% of archive users.
     It should be divided in 'devel', 'dist' and 'hist' (-ory).
     Mirrors should be allowed to only carry the 'dist' stuff.

     I tried to mirror the jakarta-site, but the servers
     are way to slow; it took days to get into sync.
     Mirrorring it is a complete waste of resources.

     Possibly (probably) the same goes for 'xml-site'.

  -- Q: Why are the local urls in apache-mirror/index.html
        refering to '/' (eg HREF="/dist/", HREF="/foundation/")
        instead of subdirectories (eg HREF="dist/", "foundation/").

     A: Because the maintainters refuse to correct this.
        Below is a index.php page that tries to fix it.
        Throw in an --exclude='*.php'.

-----------------------------------------------------------
<?

function html_begin ( $title )
  { if ( ! headers_sent() ) { header("Content-Type: text/html\n\n") ; }
#   echo "<HTML>\n<HEAD>\n" ;
#   echo "<TITLE>$title</TITLE>\n" ;
#   echo "<>\n<BODY>\n" ;
#   echo "<H2>$title</H2>\n" ;
  }

function html_exit ( $msg )
  { global $SYS_NAME ;
    if ( ! headers_sent() ) { html_begin( 'Error', 'Exit' ) ; }
    echo "<P><FONT SIZE=\"+2\" COLOR=\"RED\">Error: $msg</FONT>\n" ;
    html_end () ;
    exit ;
  }

function html_end ( )
  { global $SYS_ADMIN_URL, $SYS_ADMIN, $SYS_NAME,
      $CREDITS, $SYS_BASE_URL ;
    if ( ! headers_sent() ) { html_begin( 'Error' ) ; }
    echo "\n</BODY>\n</HTML>\n" ;
  }

if ( ! ( $IDX = fopen ( 'index.html', 'r' ) ) )
  { html_exit ( "can't find index.html" ) ; }

while ( ! feof ( $IDX ) )
  { $line = fgets( $IDX, 4096 ) ;
    $line = preg_replace ( '/href="\//', 'href="', $line ) ;
    echo $line ;
  }

fclose ( $IDX );

?>
-----------------------------------------------------------

> Andrew Kenna
> Network Administrator

  regards.

  Henk Penning

Henk P. Penning, Dept of Computer Science, Utrecht University \__/  \
Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands. \__/
Telephone: +31-30-2534106, fax: 2513791, NIC-handle: HPP1 _/  \__/  \
News.answers http://www.cs.uu.nl/cgi-bin/faqwais     \__/  \__/  \__/


Mime
View raw message