Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 72979 invoked from network); 10 Aug 2009 01:49:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Aug 2009 01:49:26 -0000 Received: (qmail 15886 invoked by uid 500); 10 Aug 2009 01:49:30 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 15837 invoked by uid 500); 10 Aug 2009 01:49:30 -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: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 15828 invoked by uid 99); 10 Aug 2009 01:49:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Aug 2009 01:49:30 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of grattojf@gmail.com designates 74.125.78.145 as permitted sender) Received: from [74.125.78.145] (HELO ey-out-1920.google.com) (74.125.78.145) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Aug 2009 01:49:17 +0000 Received: by ey-out-1920.google.com with SMTP id 13so660163eye.48 for ; Sun, 09 Aug 2009 18:48:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=9gMKAl0FLGlZxcVyIZJXRzikfapRgWrvV1hKtCa2yHU=; b=JTaPzzuw3YCN67LkNzEMxyBSyq0CgoK2SzfECnne/qZk3qXBfK5JcRVprEIoqVtkKy YhztLkQNkte5lAm1pgaVMaGM1vPVURWBPZ1cFG9vtMETLKFxNKURpHITpZdI67KTCs0V l9MV6kuH4+NCEB4CqZx8YPu5N6IHVr9jdvzRc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=wF4nglMHjlzn5TJtGuKVd03dUJ2LZlQoUzo4a1PnCrp0pGf50T5+nuqMkg82IsPnU1 ukq07SaodOg50hxEVlHQj5qp6+SE2Sf0OEZ9cJT+tp9fj+2/jYwIA1Kq7UqDATIqmM6p Oy2q5MwoxAXIi9dx/Vf2kOeHgAo6nO9xKjGRI= MIME-Version: 1.0 Received: by 10.216.18.212 with SMTP id l62mr793642wel.76.1249868936776; Sun, 09 Aug 2009 18:48:56 -0700 (PDT) Date: Sun, 9 Aug 2009 21:48:56 -0400 Message-ID: <313b9c060908091848v66823f45mcfc511ff836adb2d@mail.gmail.com> From: =?ISO-8859-1?Q?Jean=2DFran=E7ois?= To: users@httpd.apache.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] vhost not receiving the connections Hello, I=92m having an issue with serving the correct pages on my httpd with vhost= s. Basically (more config details follow, below), I=92m running a server on port 80 and wanted to add a vhost (named-based config) so that a specific task is server by another server. Well, a vhost. I don=92t know why it=92s like this, but right now it seems that whenever I try to connect on the vhost, pages are served from the DocumentRoot of the main server. Another thing: this is behind a firewall that block port 80. The firewall redirects port 801 to port on the concerned boxen. Here=92s a bit of config : My main server is at w.dnsalias.net . My vhost is at x.dnsalias.net . There is no name resolution issue, both hosts (x and y) resolve to the same IP; I'm running apache v2.2.11 on a Solaris 10u5-x86 box. The whole httpd (config, logs, docroot, etc) resides in /tools/apache2/ . The way I want it set up is that my main server=92s DocumentRoot should use the default value which in this case should be /tools/apache2/htdocs/ , and the vhosts should use /tools/apache2/samples/ . As I mentioned above, seems like that instead of going at /tools/apache2/samples/index.html when I navigate to http://x.dnsalias.net:801/ (firewall redirects to port 80), it goes in /tools/apache2/htdocs/index.html (the famous =93it works!=94 page). My main httpd.conf reads like this (of course I=92ve left off parts not pertinent to this issue): ServerRoot =93/tools/apache2=94 Listen 80 ServerAdmin myEmailAddress@somewhere ServerName w.dnsalias.net DocumentRoot =93/tools/apache2/htdocs=94 Then, the very last line of the httpd.conf is : Include conf/vhosts_jfg.conf The file /tools/apache2/conf/vhosts_jfg.conf is this one (very short) : NameVirtualHost w.dnsalias.net NameVirtualHost x.dnsalias.net =A0=A0=A0=A0ServerAdmin me@somewhere.ca =A0=A0=A0DocumentRoot "/tools/apache2/htdocs/" =A0=A0=A0=A0ServerName w.dnsalias.net =A0=A0=A0=A0ServerAdmin me@somewhere.ca =A0=A0=A0DocumentRoot "/tools/apache2/samples/" =A0=A0=A0=A0ServerName x.dnsalias.net =A0=A0=A0=A0ErrorLog "logs/x-error_log" =A0=A0=A0=A0CustomLog "logs/x-access_log" common I also noticed that logs/x-error_log and logs/x-acces_log are left clean, no data is ever written there, which leads me to think that my httpd seems to be ignoring my vhost altogether. Do you people have an idea why my server is behaving like this ? Thanks, Jeff --------------------------------------------------------------------- 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