Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B672517660 for ; Thu, 6 Nov 2014 16:31:32 +0000 (UTC) Received: (qmail 68485 invoked by uid 500); 6 Nov 2014 16:31:29 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 68451 invoked by uid 500); 6 Nov 2014 16:31:29 -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 68441 invoked by uid 99); 6 Nov 2014 16:31:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Nov 2014 16:31:29 +0000 X-ASF-Spam-Status: No, hits=3.1 required=5.0 tests=SPF_PASS,URI_OBFU_WWW X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [50.59.65.11] (HELO pettijohn.localdomain) (50.59.65.11) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Nov 2014 16:31:25 +0000 Received: from pettijohn (localhost [127.0.0.1]) by pettijohn.localdomain (Postfix) with ESMTP id 9EF932FC613 for ; Thu, 6 Nov 2014 10:31:03 -0600 (CST) Received: from pettijohn.localdomain ([127.0.0.1]) by pettijohn (pettijohn.no-ip.biz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 90odA9OgRbtF for ; Thu, 6 Nov 2014 10:31:03 -0600 (CST) Received: from [192.168.1.6] (unknown [50.59.65.11]) by pettijohn.localdomain (Postfix) with ESMTPSA id 53AE12FC3BB for ; Thu, 6 Nov 2014 10:31:03 -0600 (CST) Message-ID: <545BA228.3030307@pettijohn.no-ip.biz> Date: Thu, 06 Nov 2014 10:30:32 -0600 From: Edgar Pettijohn User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: users@httpd.apache.org References: <5b2n5a5k2iec1tbbpr3nrpfn2dm7r6v1mr@4ax.com> <545B9A6E.6050709@pettijohn.no-ip.biz> <1f7n5alpb8l6s29oh6d8p18vkge82guhu5@4ax.com> In-Reply-To: <1f7n5alpb8l6s29oh6d8p18vkge82guhu5@4ax.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Problem with httpd.conf Try giving NameVirtualHost 0.0.0.0:80 or the actual ip:80. Not sure if it will change anything, but its worth the 10 seconds it will take to implement. On 11/06/2014 10:21 AM, Steve Matzura wrote: > Once again, domains and addresses are obfuscated. 'xxx' refers to the > actual node name of the system about which we're talking. Here you go: > > [Thu Nov 06 16:11:08 2014] [warn] NameVirtualHost *:80 has no > VirtualHosts > VirtualHost configuration: > [2001:4b98:dc0:41:216:3eff:fe18:db3b]:80 domain1.com > (/etc/apache2/sites-enabled/001-domain1.com:1) > 100.200.100.200:80 domain1.com > (/etc/apache2/sites-enabled/001-domain1.com:1) > wildcard NameVirtualHosts and _default_ servers: > *:80 is a NameVirtualHost > default server www.domain1.com (/etc/apache2/httpd.conf:2) > port 80 namevhost www.domain1.com (/etc/apache2/httpd.conf:2) > port 80 namevhost www.domain2.com (/etc/apache2/httpd.conf:7) > port 80 namevhost xxx.domain1.com > (/etc/apache2/sites-enabled/000-default:1) > Syntax OK > > On Thu, 06 Nov 2014 09:57:34 -0600, you wrote: > >> try this to test your virtual host config. >> >> #apache2ctl -S >> >> On 11/06/2014 09:43 AM, Steve Matzura wrote: >>> When restarting the server with 'apache2ctl restart', or when using >>> the -t option to check the syntax of files, I get the following after >>> the current date-and-time stamp: >>> >>> [warn] NameVirtualHost *:80 has no VirtualHosts >>> >>> Before I added anything to httpd.conf, it was empty--a 0-length >>> file--which I know is not the normal state of things, based on what I >>> found after installing Apache on a new test-bed system, so things in >>> the production-side httpd.conf may be broken--I fully understand that. >>> According to the documentation at >>> http://httpd.apache.org/docs/2.2/vhosts/name-based.html, the following >>> is what I put into httpd.conf to define a primary served domain >>> (domain1) and add a second one (domain2). I also looked at the freshly >>> created copy of httpd.conf and saw nothing in it to define the primary >>> server with the exception of a name and document root directive, which >>> further adds to my confoundment. >>> >>> # Actual domain names obfuscated for purposes of this post. >>> >>> NameVirtualHost *:80 >>> >>> ServerName www.domain1.com >>> ServerAlias domain1.com *.domain1.com >>> DocumentRoot /webfiles-root/www/domain1.com >>> >>> >>> >>> ServerName www.domain2.com >>> ServerAlias domain2.com *.domain2.com >>> DocumentRoot /webfiles-root/www/domain2.com >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org >>> For additional commands, e-mail: users-help@httpd.apache.org >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org >> For additional commands, e-mail: users-help@httpd.apache.org >> > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org