From that output, I can see that you're using an old release. The
debian package has since been fixed to use *:80 instead of *.
In any case, please read:
http://wiki.apache.org/httpd/CouldNotBindToAddress
To resolve your second issue.
Frank.
RicardoCh wrote:
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.ging...@gmail.com]
Enviado el: lunes, 07 de septiembre de 2009 01:56 p.m.
Para: users@httpd.apache.org
Asunto: Re: [us...@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<rac...@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 webmas...@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 webmas...@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 webmas...@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-unsubscr...@httpd.apache.org
" from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@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-unsubscr...@httpd.apache.org
" from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@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-unsubscr...@httpd.apache.org
" from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org