Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 59679 invoked from network); 7 Sep 2009 16:32:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Sep 2009 16:32:43 -0000 Received: (qmail 29863 invoked by uid 500); 7 Sep 2009 16:32:40 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 29831 invoked by uid 500); 7 Sep 2009 16:32:39 -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 29822 invoked by uid 99); 7 Sep 2009 16:32:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Sep 2009 16:32:39 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of racham@hotmail.com designates 65.55.111.82 as permitted sender) Received: from [65.55.111.82] (HELO blu0-omc2-s7.blu0.hotmail.com) (65.55.111.82) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Sep 2009 16:32:25 +0000 Received: from BLU0-SMTP62 ([65.55.111.72]) by blu0-omc2-s7.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 7 Sep 2009 09:32:04 -0700 X-Originating-IP: [190.244.20.5] X-Originating-Email: [racham@hotmail.com] Message-ID: Received: from ricardo ([190.244.20.5]) by BLU0-SMTP62.blu0.hotmail.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Mon, 7 Sep 2009 09:32:02 -0700 From: "RicardoCh" To: Date: Mon, 7 Sep 2009 13:32:00 -0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0030_01CA2FBF.95D76220" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acov2Lk96vPyx9rfQU6gyXUs6I5xbA== Content-Language: es-ar X-OriginalArrivalTime: 07 Sep 2009 16:32:03.0079 (UTC) FILETIME=[BB081170:01CA2FD8] X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] Crazy with VirtualHost and warnings!!! ------=_NextPart_000_0030_01CA2FBF.95D76220 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I have a web-file-router-proxycache-firewall server (ALL ON THE SAME MACHINE) Debian Lenny Squid 2.7-Apache 2-Samba 3-iptables. I'm going more crazy that ever!!! The problem is VirtualHost and the warnings like: [warn] _default_ VirtualHost overlap on port 80, the first has precedence [warn] _default_ VirtualHost overlap on port 80, the first has precedence httpd not running, trying to start (98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs Settings of apache2: ports.conf: *: 80, Listen 80 httpd.conf: in blank sites-available/mysite: ----------paste---------------- <------>DirectoryIndex index.html <------>ServerAdmin webmaster@mail.com <------>ServerName *.mydomain.com <------>ServerAlias www.mydomain.com <------>DocumentRoot /var/www <------> <------><------>Options FollowSymLinks <------><------>AllowOverride None <------> <------> <------><------>Options FollowSymLinks MultiViews <------><------>AllowOverride None <------><------>Order allow,deny <------><------>allow from all <------><------># This directive allows us to have apache2's default start page # in /apache2-default/, but still have / go to the right place <------><------>#RedirectMatch ^/$ /apache2-default/ <------> <------>ErrorLog /var/log/apache2/error.log <------>DirectoryIndex index.html <------>ServerAdmin webmaster@mail.com <------>ServerName *.otherdomain.com <------>ServerAlias www.otherdomain.com <------>DocumentRoot /var/www <------> <------><------>Options FollowSymLinks <------><------>AllowOverride None <------> <------> <------><------>Options FollowSymLinks MultiViews <------><------>AllowOverride None <------><------>Order allow,deny <------><------>allow from all <------><------># This directive allows us to have apache2's default start page # in /apache2-default/, but still have / go to the right place <------><------>#RedirectMatch ^/$ /apache2-default/ <------> <------>ErrorLog /var/log/apache2/error.log <------>DirectoryIndex index.html <------>ServerAdmin webmaster@mail.com <------>ServerName *.anotherdomain.com <------>ServerAlias www.anotherdomain.com <------>DocumentRoot /var/www <------> <------><------>Options FollowSymLinks <------><------>AllowOverride None <------> <------> <------><------>Options FollowSymLinks MultiViews <------><------>AllowOverride None <------><------>Order allow,deny <------><------>allow from all <------><------># This directive allows us to have apache2's default start page # in /apache2-default/, but still have / go to the right place <------><------>#RedirectMatch ^/$ /apache2-default/ <------> <------>ErrorLog /var/log/apache2/error.log -------------end paste------------------------------------------------ Sites-enabled/@000-mysite /etc/hosts file: 127.0.0.1 mynameserver.mydomain.com mynameserver Iptables: $IPTABLES -t nat -A PREROUTING -i $LAN_IFACE -s $LAN_IP_RANGE -d ! $LAN_IP_RANGE -p tcp --dport 80 -j REDIRECT --to-ports 3128 Squid 2.7: http_port 192.168.0.1:3128 transparent http_port IPtoInternet:80 accel defaultsite=mysite.com vhost cache_peer 127.0.0.1 parent 80 0 no-query originserver name=Linux Help please, thanks in advance Regards Ricardo ------=_NextPart_000_0030_01CA2FBF.95D76220 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I have a web-file-router-proxycache-firewall server (ALL ON = THE SAME MACHINE) Debian Lenny Squid 2.7-Apache 2-Samba = 3-iptables.

 
I'm going more crazy that ever!!!

The problem is VirtualHost and the warnings = like:

 

[warn] _default_ VirtualHost overlap on port 80, the first = has precedence

[warn] _default_ VirtualHost overlap on port 80, the first = has precedence

httpd not running, trying to start

(98)Address already in use: make_sock: could not bind to = address [::]:80

(98)Address already in use: make_sock: could not bind to = address 0.0.0.0:80

no listening sockets available, shutting = down

Unable to open logs

 

Settings of apache2:

ports.conf: *: 80, Listen 80

httpd.conf: in blank

sites-available/mysite:

 

----------paste----------------

 

<VirtualHost = *:80>

<------>DirectoryIndex = index.html

<------>ServerAdmin webmaster@mail.com

<------>ServerName = *.mydomain.com

<------>ServerAlias = www.mydomain.com

<------>DocumentRoot = /var/www

<------><Directory = />

<------><------>Options FollowSymLinks

<------><------>AllowOverride None

<------></Directory>

<------><Directory = /var/www/>

<------><------>Options FollowSymLinks MultiViews

<------><------>AllowOverride None

<------><------>Order allow,deny

<------><------>allow from = all

<------><------># = This directive allows us to have apache2's default start = page

          =       # in /apache2-default/, but still have / go to the right = place

<------><------>#RedirectMatch ^/$ /apache2-default/

<------></Directory>

<------>ErrorLog /var/log/apache2/error.log

</VirtualHost>

 

<VirtualHost = *:80>

<------>DirectoryIndex = index.html

<------>ServerAdmin webmaster@mail.com

<------>ServerName = *.otherdomain.com

<------>ServerAlias www.otherdomain.com

<------>DocumentRoot = /var/www

<------><Directory = />

<------><------>Options FollowSymLinks

<------><------>AllowOverride None

<------></Directory>

<------><Directory = /var/www/>

<------><------>Options FollowSymLinks MultiViews

<------><------>AllowOverride None

<------><------>Order allow,deny

<------><------>allow from = all

<------><------># = This directive allows us to have apache2's default start = page

          =       # in /apache2-default/, but still have / go to the right = place

<------><------>#RedirectMatch ^/$ /apache2-default/

<------></Directory>

<------>ErrorLog /var/log/apache2/error.log

</VirtualHost>

 

<VirtualHost = *:80>

<------>DirectoryIndex = index.html

<------>ServerAdmin webmaster@mail.com

<------>ServerName *.anotherdomain.com

<------>ServerAlias www.anotherdomain.com

<------>DocumentRoot = /var/www

<------><Directory = />

<------><------>Options FollowSymLinks

<------><------>AllowOverride None

<------></Directory>

<------><Directory = /var/www/>

<------><------>Options FollowSymLinks MultiViews

<------><------>AllowOverride None

<------><------>Order allow,deny

<------><------>allow from = all

<------><------># = This directive allows us to have apache2's default start = page

          =       # in /apache2-default/, but still have / go to the right = place

<------><------>#RedirectMatch ^/$ /apache2-default/

<------></Directory>

<------>ErrorLog /var/log/apache2/error.log

</VirtualHost>

 

-------------end paste------------------------------------------------

 

Sites-enabled/@000-mysite

 

/etc/hosts file:    127.0.0.1     = mynameserver.mydomain.com     mynameserver

 

Iptables:

$IPTABLES -t nat -A PREROUTING -i $LAN_IFACE -s $LAN_IP_RANGE -d ! $LAN_IP_RANGE = -p tcp --dport 80 -j REDIRECT --to-ports 3128

 

Squid 2.7:

 

http_port 192.168.0.1:3128 transparent

http_port IPtoInternet:80 accel defaultsite=3Dmysite.com = vhost

cache_peer 127.0.0.1 parent 80 0 no-query originserver = name=3DLinux

 

 

Help please, thanks in advance

Regards

Ricardo

 

------=_NextPart_000_0030_01CA2FBF.95D76220--