Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 64343 invoked from network); 26 Jun 2006 06:43:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Jun 2006 06:43:15 -0000 Received: (qmail 12849 invoked by uid 500); 26 Jun 2006 06:43:05 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 12835 invoked by uid 500); 26 Jun 2006 06:43:05 -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 12824 invoked by uid 99); 26 Jun 2006 06:43:05 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Jun 2006 23:43:05 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of uhlar@fantomas.sk designates 195.168.3.66 as permitted sender) Received: from [195.168.3.66] (HELO fantomas.fantomas.sk) (195.168.3.66) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Jun 2006 23:43:04 -0700 Received: from fantomas.fantomas.sk (uhlar@localhost [127.0.0.1]) by fantomas.fantomas.sk (8.13.4/8.13.4/Debian-3sarge1) with ESMTP id k5Q6ggXL011723 for ; Mon, 26 Jun 2006 08:42:43 +0200 Received: (from uhlar@localhost) by fantomas.fantomas.sk (8.13.4/8.13.4/Submit) id k5Q6ggFB011722 for users@httpd.apache.org; Mon, 26 Jun 2006 08:42:42 +0200 X-Authentication-Warning: fantomas.fantomas.sk: uhlar set sender to uhlar@fantomas.sk using -f Date: Mon, 26 Jun 2006 08:42:42 +0200 From: Matus UHLAR - fantomas To: users@httpd.apache.org Message-ID: <20060626064242.GA11592@fantomas.sk> Mail-Followup-To: users@httpd.apache.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Echelon: nuclear bomb plane crash terrorist attack djihad spy echelon sucks User-Agent: Mutt/1.5.9i X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] (again) Can not define "default" name virtual host X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello, this is my current configuration of apache (debian: 1.3.33-6sarge1): NameVirtualHost 195.168.3.66:80 ServerName default.fantomas.sk DocumentRoot /home/webs/default.fantomas.sk ServerName fantomas.fantomas.sk DocumentRoot /home/webs/fantomas.fantomas.sk ServerName 195.168.3.66 DocumentRoot /home/webs/195.168.3.66 However, with this configuration I was not able to reach virtual host 195.168.3.66. It seems that apache accepts name defined in as one of hames for name virtual host - when I switched to , I couldn't reach virtual host for fantomas.fantomas.sk. I can not simply use because of different virtual servers running at different IP addresses. Also, at other sites I'm configuring apache from databases that contain server-IP pairs, configuring given server at given IP, and exporting this configuration to DNS. Can anyone confirm this behaviour? Can anyone explain to my, why was name-based virtual hosting made this way? I guess it was because of possibility of simple configuration of virtual hosts way I noticed in one config some time ago: ### NameVirtualHost [IP] DocumentRoot /server/first DocumentRoot /server/second ### - defining virtual hosts without ServerName and/or ServerAlias directives. Can anyone advise me, what could I change in source code to make it work the expected (and documented) way - only using labels in ServerName and ServerAlias in virtual hosts? Thank you. -- Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. He who laughs last thinks slowest. --------------------------------------------------------------------- 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