xemacsweb / Download / how-to-mirror-web.content

How to become a mirror of the XEmacs web site
the Apache group
Andrew J Cosgriff

<h1>How to Become a Mirror of the XEmacs Web Site</h1>

<p>If you are in a part of the world which seems poorly served by our
existing mirror sites, we would encourage you to set up a local mirror
of the web site for you and others in your part of the
world to use.  So that others may find it, we'll list it on the
left-hand sidebar of our web pages.</p>


<p>We have a few requirements for those wishing to run a mirror:</p>

	    <li><p>You must carry the complete site, with no "local"

	    <li><p>You must do an update-check at least once per day.</p></li>

	    <li><p>You must subscribe to the <a
	    href="" shape="rect">mailing
  list</a> for mirror maintainers.</p></li>

	    <li><p>Make sure your webserver looks for "index.html" as the
  default document in a directory - If you're running the Apache
  webserver, this means using the configuration directive :</p>
  <p><code>DirectoryIndex index.html</code>.</p></li>

<p>More requirements may be placed at some point in the future, but
for now that's all there is.</p>

<p>Also note that :</p>

  <li><p>The web site is approximately 20 megabytes at the time of
  writing (January 2001).</p></li>

  <li><p>We highly recommend that you run your mirroring software
  between midnight and 4am US Eastern Standard Time (4am-8am GMT),
  when traffic to is at its lowest.</p></li>

  <li><p>If possible, we'd prefer that you're able to have the website
  in its own virtual host so that we can make a host alias for it,
  like or, for instance.</p></li>

<h2>Mirroring Techniques</h2>

<p>There are a couple different ways to mirror the XEmacs web site.
Here is the list of ways we make available, in order of decreasing


	    <li><p>Use rsync.  You can find details on rsync at <a
	    href="" shape="rect"></a>.  To mirror
the XEmacs website, you could use something like :</p>

<pre xml:space="preserve">rsync -avz --delete /local/path/to/mirror</pre>

<p>You can also just do a <code>rsync</code> to get a
list of rsync modules available.</p>

<p>You may also wich to read the <a
mirroring howto and FAQ</a>.</p></li>

	    <li><p>Use CVS to update your copy of the website from the repository
at <a href="" shape="rect">SourceForge</a>.  You'll need
Perl installed in order to generate the web pages.  If you want to be
able to validate the web pages, you'll also need to install XEmacs
with the PSGML package.</p>

<p>To check out the web site for the first time :</p>

<pre xml:space="preserve">cvs login</pre>

<p>(For the password, simply hit Enter)</p>

<pre xml:space="preserve">cvs -z3 co xemacsweb</pre>

<p>Now <code>cd xemacsweb</code> and run <code>make</code>.</p>

<p>When you want to update the website :</p>

<pre xml:space="preserve">cd /path/to/your/mirror
cvs -q update

<p>(this can be put in a cron job, for instance)</p>

	    <li><p>If you're running the Apache webserver, you could
	    use the <a
	    shape="rect">proxy module</a>
to "pass-through" requests to the central XEmacs web site.  Set up the
following in the configuration for your mirror:</p>

<pre xml:space="preserve">
ProxyPass /
CacheDefaultExpire 24

<p>Every request which then comes into this server will be passed
along to, unless the object is already in your local
cache and is less than 24 hours old.</p></li>


<p>We do not recommend the use of Web spiders, or HTTP equivalents to
the "" package, as every object needs to get a HEAD request
every time it is checked, which is a very inefficient mechanism for
seeing what's been updated on an entire site.</p>

<p>It is not possible to mirror via ftp. The other methods are also far
more efficient so you will be pleased after setting them up.</p>

<h2>Inform us!</h2>

<p>Once the site is set up, send mail to <a
href="" shape="rect"></a> to let us
know it's been set up, and we'll add it to the list of mirrors.
Please be patient if it takes a little while to respond.</p>

<p>The mailing list for mirror maintainers can be joined by following
the <a href=""

<p>Good luck!</p>

<p><small>This document is a locally modified version of the one at
the <a href=""
web site.  We appreciate their work in writing such a document in the
first place.</small></p>