Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 98465 invoked from network); 11 Jul 2004 00:18:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Jul 2004 00:18:30 -0000 Received: (qmail 3823 invoked by uid 500); 11 Jul 2004 00:18:17 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 3802 invoked by uid 500); 11 Jul 2004 00:18:17 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 3789 invoked by uid 99); 11 Jul 2004 00:18:17 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [206.45.113.102] (HELO uveais.ca) (206.45.113.102) by apache.org (qpsmtpd/0.27.1) with ESMTP; Sat, 10 Jul 2004 17:18:11 -0700 Received: from Spooler by uveais.ca (Mercury/32 v4.01) ID MO00174D; 10 Jul 2004 19:20:08 -0500 Received: from spooler by uveais.ca (Mercury/32 v4.01); 10 Jul 2004 19:18:58 -0500 Received: from beausejour.yia.ca (206.45.113.102) by uveais.ca (Mercury/32 v4.01) with ESMTP ID MG00174C; 10 Jul 2004 19:18:52 -0500 Received: from 206-45-113-166.static.mts.net ([206.45.113.166]) (SquirrelMail authenticated user krattai); by beausejour.yia.ca with HTTP; Sat, 10 Jul 2004 19:18:52 -0500 (Central Daylight Time) Message-ID: <.206.45.113.166.1089505132.squirrel@206.45.113.166> Date: Sat, 10 Jul 2004 19:18:52 -0500 (Central Daylight Time) From: "K. Rattai" To: users@httpd.apache.org Reply-To: kevin@uveais.ca User-Agent: SquirrelMail/1.5.1 [CVS] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Text-Classification: inbox X-POPFile-Link: http://KEVIN:9090/jump_to_message?view=popfile302829=1.msg X-Recipient: X-CC-Diagnostic: X-Virus-Checked: Checked Subject: [users@httpd] More Virtual Hosts problems X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Yes, I somehow feel that I've read every document out there that shows how to set up virtual hosts and yet I cannot get them to work. They all end up at the same (default) host page. The virtual hosts are set up as follows: NameVirtualHost 206.45.113.166 # Virtual host Default Virtual Host ServerAdmin webmaster@yia.ca # Virtual host apache.yia.ca DocumentRoot /var/www/html/ ServerAdmin webmaster@yia.ca ServerName apache.yia.ca ServerAlias apache.yia.ca # Virtual host alt.yia.ca DocumentRoot /var/www/html/test/ ServerAdmin webmaster@yia.ca ServerName alt.yia.ca ServerAlias alt.yia.ca The DocumentRoot paths are of no consequence, as I'm simply trying to get the darned thing working right. I thought that perhaps the name was not being passed through, but the log file shows proper requests: 206-45-113-102.static.mts.net - - [10/Jul/2004:18:39:21 -0500] "GET / HTTP/1.1" 403 3947 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040316" 206-45-113-102.static.mts.net - - [10/Jul/2004:18:39:21 -0500] "GET /icons/powered_by_wb.png HTTP/1.1" 200 1189 "http://apache.yia.ca/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040316" 206-45-113-102.static.mts.net - - [10/Jul/2004:18:39:21 -0500] "GET /icons/apache_pb2.gif HTTP/1.1" 200 2414 "http://apache.yia.ca/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040316" 206-45-113-102.static.mts.net - - [10/Jul/2004:18:39:22 -0500] "GET / HTTP/1.1" 403 3947 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040316" 206-45-113-102.static.mts.net - - [10/Jul/2004:18:39:23 -0500] "GET /icons/powered_by_wb.png HTTP/1.1" 200 1189 "http://alt.yia.ca/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040316" 206-45-113-102.static.mts.net - - [10/Jul/2004:18:39:23 -0500] "GET /icons/apache_pb2.gif HTTP/1.1" 200 2414 "http://alt.yia.ca/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040316" I've used the WhiteBox Linux apache config tool, I've manually made the changes and nothing seems to work. Yes, I have restarted the server after every change. Yes, the DNS is all set to point to the server at 206.45.113.166. I keep hearing about this whole bit about "no main server used" and setting the IP:port the same for all virtual hosts. I'm not sure I understand what that first bit means and the second bit is never done with the Apache config tool, so I make the changes manually then restart. I do run through a smoothwall router, but as mentioned, the requests do appear to be received properly at the apache end, as per the log files. Any suggestions? (Aside from not giving up my day job?) Kevin --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org