wiki:doc/TorMirror

## page was renamed from TorMirror

Core configuration

Thank you for wanting to be a mirror of the Tor website. All of our mirrors are publicly listed on our mirrors page. We've included some sample commands and configuration below to make the initial setup and ongoing maintenance a minimal effort. The Tor website and distribution directory currently require 15GB of disk space. The /dist directory alone is 3.6 GB.

If you would like to run a mirror, it's as easy as this command to download everything a mirror should share with the world:

rsync -av --delete rsync://rsync.torproject.org/tor tor-mirror/

If you would like to run only a dist/ mirror, it's as easy as this command to download everything a dist mirror should share with the world:

rsync -av --delete rsync://rsync.torproject.org/tor/dist tor-mirror-dist/

An example cronjob to update a full mirror once a day may look like so:

1 4 * * * rsync -av --delete rsync://rsync.torproject.org/tor/ /var/www/mirrors/torproject.org

For mirror operators that use Apache, we've created a sample virtual host configuration file to use:

<VirtualHost 1.2.3.4:80>

ServerAdmin youremail@… ServerName 1.2.3.4

DocumentRoot /var/www/mirrors/torproject.org

<Directory /var/www/mirrors/torproject.org/>

Options MultiViews Indexes DirectoryIndex index AllowOverride None

</Directory>

</VirtualHost>

Optional Configurations

Last modified 7 years ago Last modified on Jun 11, 2011, 3:14:44 PM