[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apache2's handling of IP version 6



Hi,
I'm initiator of this thread.

> On Thu, Oct 04, 2012 at 04:53:23AM +0900, Satoru Otsubo wrote:
> > Syntax error on line 2 of /etc/apache2/ports.conf
> 
> What about this syntax error?

Syntax error on line 2 is the following:
Listen [pppp:qqqq:....:rrrr]:80

....................

By the way, I thought the following concerning the problem in my CGI PC (my server PC):

  Internet-------------Router------Lan-----my PC

When booting PC, apache2 decides that ipv6 is Ok if it gets the ipv6's information and ipv6 is not Ok if it can't get the ipv6's information.
And apache2 gets the ipv6's information from the router's RA(Router Advertisements).
But the router can't send RA immediately.
Therefore when apache2 decides on whether ipv6 is Ok, it can't get the information yet.
Therefore it decides that ipv6 is not Ok.
Therefore in case of dual stack, apache2 issues an error because ports.conf is
as follows:
Listen a.b.c.d:80
Listen [pppp:qqqq:....:rrrr]:80
Listen a.b.c.d:443
Listen [pppp:qqqq:....:rrrr]:443
(Because ipv6 address explicitely exists, apache2 issues an error when it can't get ipv6's information.)
In case of ports.conf being the following:
Listen 80
Listen 443,
apache2 falls back to listen only ipv4 ports because no address format exists.

In fact, in boot sequence, I scroll locked by clicking the Scroll Lock key just before apache2's line appears, and after some moments, I again click the Scroll Lock to restart the boot sequence.
Then after booting completed, I executed,
# netstat -an
And I found there exists Listen 80 and Listen 443 in the tcp6 lines.

My thought is wrong ?

By the way, on the PC of Squeeze desktop install (my second PC),
After booting completed, on command of
# netstat -an ,
I can always find Listen 80 and Listen 443 in the tcp6 lines.
(Without # /etc/init.d/apache2 restart)
Why in the desktop environment, "# /etc/init.d/apache2 restart" is not needed ?
Is apache2 of the desktop environment executed in the other way than CGI environment ?
In fact, I found,
/etc/hosts of my GUI PC includes
# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

whereas, /etc/hosts of my CUI PC only includes
# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters


Thanks,
Satoru


Reply to: