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

Re: apache2's handling of IP version 6



On Fri, Oct 5, 2012 at 12:42 PM, Satoru Otsubo <trnsnt@otip.jp> wrote:
>> On Thu, Oct 04, 2012 at 04:53:23AM +0900, Satoru Otsubo wrote:


> 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).

That explains the at-boot v/s after-restart behavior...

Can be started later, based on a sysvinit "stage" like "$network", etc.

Does ipv6 come up cleanly if you do a soft or hard restart of apache
in rc.local?


> 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)

It's normal; apache listens on the ipv6 socket for both ipv4 and ipv6.


> 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

All that you really need for ipv6 is the "::1 ..." line. Having one
line less on your X-less box won't make a difference.

Is this your entire "/etc/hosts"? Don;t you have any ipv4 settings?!


Reply to: