On Wed, Oct 3, 2012 at 3:53 PM, Satoru Otsubo <trn...@otip.jp> wrote: > > Thanks, Stan >> >> Read this: >> >> http://www.cyberciti.biz/faq/ipv6-apache-configuration-tutorial/ > > I modified /etc/apache2/ports.conf as follows: > Listen a.b.c.d:80 > Listen [pppp:qqqq:....:rrrr]:80 > Listen a.b.c.d:443 > Listen [pppp:qqqq:....:rrrr]:443 > > (where, > a.b.c.d = my web server's IPv4 address > pppp:qqqq:....:rrrr = my web server's IPv6 address) > > And I rebooted my PC. > > Then I found the following in the boot sequence: > Starting web server: apache2[Thu Oct 04 01:02:03 2012]: [crit] (EAI 9)Address > family for hostname not supported: Alloc_listener: failed to set up sockaddr > for pppp:qqqq:....:rrrr > Syntax error on line 2 of /etc/apache2/ports.conf > Listen setup failed. > Action 'start' failed. > The Apache error log may have more information. > failed! > > (There was nothing related to this error in /var/log/apache2/error.log) > > Then I executed the following: > # /etc/init.d/apache2 restart > > And the Apache started successfully with the dual stack: > > Why apache2 succeeded to start when I executed # /etc/init.d/apache2 restart, > after apache2 failed to start when booting ?
Did you see, on the page that Stan sent you that you need a "VirtualHost" stanza for ipv6: <VirtualHost 74.86.48.99> <VirtualHost [2607:f0d0:1002:11::4]> or <VirtualHost 74.86.48.99 [2607:f0d0:1002:11::4]> (Also, "Listen 80" covers both ipv4 and ipv6.) -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAOdo=sx97kykrtocvex_q8tw0jwwnybsjc3ump67gyxh+ev...@mail.gmail.com