[tor-mirrors] Setting up Apache VirtualHosts

Bryon Eldridge barkerjr at barkerjr.net
Sun Apr 17 04:24:49 UTC 2011


Don't specify two NameVirtualHosts.  Also, don't specify the hostname
in the VirtualHost tag (just use the *).  Place the hostname that you
want to be the default first, and Apache will use it for anything that
doesn't match a ServerName or ServerAlias.

NameVirtualHost *:80
Listen 80

<IfModule mod_ssl.c>
   # SSL name based virtual hosts are not yet supported, therefore no
   # NameVirtualHost statement here
   Listen 443
</IfModule>

<VirtualHost *:80>
       ServerName vps1.tehzomb.info
       DocumentRoot /var/www/tehzomb.info
</VirtualHost>

<VirtualHost tor.*:80>
       ServerAdmin the.jungle at tehzomb.info
       ServerName tor.tehzomb.info

       DocumentRoot /var/www/tor-mirror

       <Directory /var/www/tor-mirror/>
               Options MultiViews Indexes
               DirectoryIndex index
               AllowOverride None
       </Directory>
</VirtualHost>


More information about the tor-mirrors mailing list