
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Setting up a mirror for the first time here, and I haven't messed around with Apache for a while so I can't figure out what I'm doing wrong here... I have two virtual hosts setup: First, one for tor.tehzomb.info that points to DocumentRoot /foo/tor, and another that's (supposed) to be for everything else that points to /foo/bar. However, typing in any subdomain pointing to the box [1][2] brings up the tor mirror, and typing in the IP address is the only way to bring up the blank index page [3]. Does anyone know what I'm doing wrong? I pasted my /etc/apache2/ports.conf below. Thanks, Jake [1] http://tor.tehzomb.info/ [2] http://vps1.tehzomb.info [3] http://173.230.139.152/ - --snip NameVirtualHost tor.tehzomb.info:80 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 tor.tehzomb.info:80> ServerAdmin the.jungle@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> <VirtualHost *:80> ServerName default ServerAlias * ServerAlias vps1.tehzomb.info DocumentRoot /var/www/tehzomb.info </VirtualHost> - --snip - -- Jake Eisenman - the.jungle@tehzomb.info http://http.tehzomb.info/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJNqmoDAAoJENfuoNySdlsETSEP/j1/0gdwPkTDR2UV/hEjjGTS ttkRty780SHnD87zQHk3jMNQWoTAq9j85h75EWrCRINUbkJfHu1iXMSo4vR0FtUD UdKRuK586h3NY+YkFJiH9vqJRvTRlAq12DhzRptGi4v1YKP4z76FXKI59BRhKDLd +PUfQwU0aHMz+nSAv0Qt8zvMSUEb5rjn/nmyQ5mQLV+UEDfGmhNVJa2ej3Q2ZKnD YMmEs6o+urSuow7xEFu0i877c5RXcV7fQFgkd62cTlAk+0aeS8Jw9Posdfg2OCK6 KGBb8W1oK52kBOC9zokOebwHDh64YhPaGSeF9PKZy+xVINR17XGQpDeks+4pkzat imqKDqPzOfBYfRDbWUy44hmTU7qgzkRCHGueR/I8fa7xUfVSsRLBITitaRnp5Y+L BREdkZNlG8EVpV1IjYMTXihce1/24JOGDEtlFZAexbWaFhWgt4YnL9bQhZsBshDG kashx5htDXEsfa4KfmR5UyQ9u3v8+YXZCc5k5NaTPe9IftETw4QfvwOuFnIDMj9A t3Er5spCtJiet2grd96xuL1ms94aXzZHXEQy/ZaCx9H4fGkQ9/HklHgmFwGdr5Oy nAXVka99Ks+DMVQOALMK9yzHqLa2OhgTmZ/CTX1MrFFY+HPUKiLikMt5i0/q7106 ei2DyNUAkxJUOi4nTGGc =eOfv -----END PGP SIGNATURE-----

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@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>

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Awesome, it worked. Thank you! On 4/17/2011 12:24 AM, Bryon Eldridge wrote:
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@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> _______________________________________________ tor-mirrors mailing list tor-mirrors@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-mirrors
- -- Jake Eisenman - the.jungle@tehzomb.info http://http.tehzomb.info/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJNqm2YAAoJENfuoNySdlsEb1wP/iQHDhpaTju7JEVNpXzxgRCl sG9bfUUZqVJsGW/+DHtRBeUIBou65PxHsnUUhd2TSHaDPEvqRFY5hzLX2DPU+KwD Is/6Mjng+7fwcGJ1nvEw67frFMsLD5ZI8Pfv9u0BR93RyO8PuTBWAC1iMOibMIsv 3bnJK7DNVLkzzyd/cFzSmI9h3lz5iJS7sMFjxNBtwl0POySSEfHT9uqScdDHSNf/ OU/Cqn5zV3Cmkm6ZIP6RJsOXKamks8boFZ5X8KsJMBtSesXzRGBYbpquX8vZBpmP IFqupMVV8w/Sx0dctE+YlkHr3IGT5ruDsdIIJOPFtnrIlfL50RkGg7l6JUK4w599 tS81PzYYkQR9ZGzBGZy8yP+gifwM5XfgnUrAAuJaP7D8jj5jI8JvJ+85UXnuQS1s vEc58KS80G0Jay2GWeyB7ylRvgJYKuBjFYjcIyocxIl18pUEvGfaLcoIagTQCoEH lo7LSOgOK09chXvxMRAJiArTzRpNyUtMyxa8Oj4PnysY63M1LY7t0jPyRdhzsUEx hhCimq8ZevI0R66PejIuck7lV7uP/Wajv8JFkYmr0Z8YeuRAgQBgwNYGxRxxM2GV dq9cx+hjPMRBrlttMk4vMNJKNr1HyR+/EoPQvzLlZtBgyj6lYMMPbmeFEIk0Xbef 7FA0yDBwXI/v08Dm7mLm =qIzr -----END PGP SIGNATURE-----
participants (2)
-
Bryon Eldridge
-
Jake Eisenman