httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "RicardoCh" <rac...@hotmail.com>
Subject RE: [users@httpd] Crazy with VirtualHost and warnings!!!
Date Tue, 08 Sep 2009 03:44:51 GMT
Well, first, I mean that now the apache2 is configured exactly like
describes this Debian page:
http://www.debian-administration.org/articles/412 
Second, this is the output asked by Francois:

Linux:~# apache2ctl -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:*                    is a NameVirtualHost
         default server www.mysite.com (/etc/apache2/sites-enabled/mysite:1)
         port * namevhost www.mysite.com
(/etc/apache2/sites-enabled/mysite:1)
         port * namevhost www.othersite.com
(/etc/apache2/sites-enabled/othersite:1)
         port * namevhost www.anothersite.com
(/etc/apache2/sites-enabled/anothersite:1)
Syntax OK
Linux:~# apache2ctl restart
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

 
Ricardo

-----Mensaje original-----
De: Francois Gingras [mailto:francois.gingras@gmail.com] 
Enviado el: lunes, 07 de septiembre de 2009 01:56 p.m.
Para: users@httpd.apache.org
Asunto: Re: [users@httpd] Crazy with VirtualHost and warnings!!!

Give us the output from apache2ctl -S instead.

Frank

On Mon, Sep 7, 2009 at 12:32 PM, RicardoCh<racham@hotmail.com> wrote:
> 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=mysite.com vhost
>
> cache_peer 127.0.0.1 parent 80 0 no-query originserver name=Linux
>
>
>
>
>
> Help please, thanks in advance
>
> Regards
>
> Ricardo
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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


Mime
View raw message