Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun May 22, 2011 1:44 pm 
Offline
Senior Member

Joined: Sat Oct 23, 2010 12:56 pm
Posts: 73
Website: http://www.ingber.com
Location: Oregon
Linode support could not answer this problem and suggested I post it on this forum: "Thank you for contacting us. Although we try to answer all questions as best we can, Linode provides an unmanaged service and questions like this are beyond the scope of our support. I suggest joining our active user community and asking for assistance there. You can find out more about the user community here:"

Yesterday I added IPv6 and also delegated my DNS to Linode from NetSol. Today, after ssh into my Linode shell, I found that I could not access
http://ingber.com
using elinks or firefox, getting
"The requested URL / was not found on this server."
although those browsers work just fine, e.g., with http://google.com.

I can access my site using
http://74.63.215.26
(my IPv4 Linode address) but not
http://[2600:3c01::f03c:91ff:fe93:e6f3]/
(my new IPv6 Linode address).
All the tests on
http://library.linode.com/networking/ipv6
seem to work just fine.

I also can access
https://ingber.com

I also have output requested by Linode support:

10:15:50am @lin.ingber:~% dig +trace ingber.com

; <<>> DiG 9.7.3 <<>> +trace ingber.com
;; global options: +cmd
. 517270 IN NS a.root-servers.net .
. 517270 IN NS f.root-servers.net .
. 517270 IN NS k.root-servers.net .
. 517270 IN NS c.root-servers.net .
. 517270 IN NS l.root-servers.net .
. 517270 IN NS b.root-servers.net .
. 517270 IN NS g.root-servers.net .
. 517270 IN NS m.root-servers.net .
. 517270 IN NS d.root-servers.net .
. 517270 IN NS j.root-servers.net .
. 517270 IN NS e.root-servers.net .
. 517270 IN NS h.root-servers.net .
. 517270 IN NS i.root-servers.net .
;; Received 228 bytes from 208.67.222.222#53(208.67.222.222) in 22 ms

com. 172800 IN NS k.gtld-servers.net .
com. 172800 IN NS h.gtld-servers.net .
com. 172800 IN NS i.gtld-servers.net .
com. 172800 IN NS j.gtld-servers.net .
com. 172800 IN NS f.gtld-servers.net .
com. 172800 IN NS l.gtld-servers.net .
com. 172800 IN NS b.gtld-servers.net .
com. 172800 IN NS a.gtld-servers.net .
com. 172800 IN NS d.gtld-servers.net .
com. 172800 IN NS m.gtld-servers.net .
com. 172800 IN NS g.gtld-servers.net .
com. 172800 IN NS e.gtld-servers.net .
com. 172800 IN NS c.gtld-servers.net .
;; Received 488 bytes from 192.228.79.201#53(b.root-servers.net ) in 11 ms

ingber.com . 172800 IN NS ns1.linode.com .
ingber.com . 172800 IN NS ns2.linode.com .
ingber.com . 172800 IN NS ns3.linode.com .
ingber.com . 172800 IN NS ns4.linode.com .
ingber.com . 172800 IN NS ns5.linode.com .
;; Received 205 bytes from 192.42.93.30#53(g.gtld-servers.net ) in 7 ms

ingber.com . 86400 IN A 173.255.212.226
ingber.com . 86400 IN NS ns3.linode.com .
ingber.com . 86400 IN NS ns4.linode.com .
ingber.com . 86400 IN NS ns1.linode.com .
ingber.com . 86400 IN NS ns2.linode.com .
ingber.com . 86400 IN NS ns5.linode.com .
;; Received 221 bytes from 109.74.194.10#53(ns5.linode.com ) in 153 ms

This problem seems to occur only from my Linode shell, not from other sites.


Any suggestions?

Thanks..

Lester

_________________
http://www.ingber.com


Top
   
 Post subject:
PostPosted: Sun May 22, 2011 2:06 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
What does "apache2ctl -S" report?

For what it's worth, your site is reachable OK via IPv4, but not by IPv6:

Code:
rtucker@witte:~$ curl -I -H "Host: ingber.com" http://173.255.212.226
HTTP/1.1 200 OK
Date: Sun, 22 May 2011 18:06:03 GMT
Server: Apache/2.2.17 (Ubuntu)
Last-Modified: Sun, 22 May 2011 14:27:14 GMT
ETag: "1786d1-107e6-4a3de26b05480"
Accept-Ranges: bytes
Content-Length: 67558
Vary: Accept-Encoding
Content-Type: text/html

rtucker@witte:~$ curl -g -I -H "Host: ingber.com" "http://[2600:3c01::f03c:91ff:fe93:e6f3]/"
HTTP/1.1 404 Not Found
Date: Sun, 22 May 2011 18:06:11 GMT
Server: Apache/2.2.17 (Ubuntu)
Vary: Accept-Encoding
Content-Type: text/html; charset=iso-8859-1


So I'm guessing your VirtualHosts aren't paying attention to the IPv6 address...

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Sun May 22, 2011 3:00 pm 
Offline
Senior Member

Joined: Sat Oct 23, 2010 12:56 pm
Posts: 73
Website: http://www.ingber.com
Location: Oregon
Hi. My apache report is:

11:55:32am @lin.ingber:~% apache2ctl -S
VirtualHost configuration:
173.255.212.226:80 is a NameVirtualHost
default server lin.ingber.com (/etc/apache2/sites-enabled/000-default:2)
port 80 namevhost lin.ingber.com (/etc/apache2/sites-enabled/000-default:2)
wildcard NameVirtualHosts and _default_ servers:
_default_:443 hit-nxdomain.opendns.com (/etc/apache2/sites-enabled/default-ssl:2)
Syntax OK

Support insists my site is registered properly under both IPv4 and IPv6. ping6 gives that info OK. All the tests on
http://library.linode.com/networking/ipv6
seem to work just fine. I assume you mean that I must add some other apache-specific into? I could not find any IPv6 info under /etc/apache2/ ?

Lester

_________________
http://www.ingber.com


Top
   
 Post subject:
PostPosted: Sun May 22, 2011 3:30 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
Here's a good howto on running a dual stack Apache Virtual Host

http://www.cyberciti.biz/faq/ipv6-apach ... -tutorial/


Top
   
 Post subject:
PostPosted: Sun May 22, 2011 3:50 pm 
Offline
Senior Member

Joined: Sat Oct 23, 2010 12:56 pm
Posts: 73
Website: http://www.ingber.com
Location: Oregon
Thanks for the ipv6 URL. I had seen that and have tried changing
/etc/apache2/ports.config
/etc/apache2/sites-available/default
/etc/apache2/sites-available/default-ssl
(soft links under /etc/apache-enabled/ to these which work fine under IPv4 only)

I created
ports.conf ports.conf.ipv4 ports.conf.ipv6

default default-ssl.ipv4 default.ipv4
default-ssl default-ssl.ipv6 default.ipv6
to quickly copy over ipv4 or ipv6 (dual) and then test with
/etc/init.d/apache2 restart

However, what I have done does not work.

ports.config.ipv6 just has added:
Listen [::]:80
Listen [::]:443

defaults.ipv6 has added an additional section
<VirtualHost [2600:3c01::f03c:91ff:fe93:e6f3]:80>
... (repeat info under <VirtualHost 173.255.212.226:80>)
</VirtualHost>

defaults-ssl.ipv6 has added an additional section
<VirtualHost [2600:3c01::f03c:91ff:fe93:e6f3]:443>
... (repeat info under <VirtualHost 173.255.212.226:443>
which is just <VirtualHost _default_:443> in default-ssl.ipv6 since
I found that <VirtualHost [::]:443> did not work)
</VirtualHost>

With the .ipv6 files I get:


12:49:38pm @lin.ingber:/etc/apache2/sites-available% /etc/init.d/apache2 restart
* Restarting web server apache2
[Sun May 22 12:49:42 2011] [error] (EAI 2)Name or service not known: Failed to resolve server name for 2600:3c01::f03c:91ff:fe93:e6f3 (check DNS) -- or specify an explicit ServerName
[Sun May 22 12:49:42 2011] [error] (EAI 2)Name or service not known: Failed to resolve server name for 2600:3c01::f03c:91ff:fe93:e6f3 (check DNS) -- or specify an explicit ServerName
... waiting [Sun May 22 12:49:43 2011] [error] (EAI 2)Name or service not known: Failed to resolve server name for 2600:3c01::f03c:91ff:fe93:e6f3 (check DNS) -- or specify an explicit ServerName
[Sun May 22 12:49:43 2011] [error] (EAI 2)Name or service not known: Failed to resolve server name for 2600:3c01::f03c:91ff:fe93:e6f3 (check DNS) -- or specify an explicit ServerName
(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 [::]:443
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
...fail!


Lester

_________________
http://www.ingber.com


Top
   
 Post subject:
PostPosted: Sun May 22, 2011 4:18 pm 
Offline
Senior Member

Joined: Sat Oct 23, 2010 12:56 pm
Posts: 73
Website: http://www.ingber.com
Location: Oregon
While I would like to get ipv6 working with apache2, I do not see how or why this is relevant to the main issue under what I posted: Why can't I reach
http://ingber.com
from within my Linode shell using just my previous ipv4 settings?

Thanks.

Lester

_________________
http://www.ingber.com


Top
   
 Post subject:
PostPosted: Sun May 22, 2011 4:37 pm 
Offline
Senior Member

Joined: Sat Oct 23, 2010 12:56 pm
Posts: 73
Website: http://www.ingber.com
Location: Oregon
Re ipv6 settings, see
http://ubuntuforums.org/showthread.php?t=935955
where it is claimed that no changes have to be made in Ubuntu servers? As remarked there, my ifconfig returns site info OK (with my old "ipv4" setttings):

1:32:36pm @lin.ingber:~% ifconfig -a
eth0 Link encap:Ethernet HWaddr f2:3c:91:93:e6:f3
inet addr:173.255.212.226 Bcast:173.255.212.255 Mask:255.255.255.0
inet6 addr: 2600:3c01::f03c:91ff:fe93:e6f3/64 Scope:Global
inet6 addr: fe80::f03c:91ff:fe93:e6f3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:121319 errors:0 dropped:0 overruns:0 frame:0
TX packets:104177 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:26774266 (26.7 MB) TX bytes:50850013 (50.8 MB)
Interrupt:227

Still, I must be missing something if I get no response from
http://[2600:3c01::f03c:91ff:fe93:e6f3]

_________________
http://www.ingber.com


Top
   
 Post subject:
PostPosted: Sun May 22, 2011 4:58 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
ingber wrote:
While I would like to get ipv6 working with apache2, I do not see how or why this is relevant to the main issue under what I posted: Why can't I reach
http://ingber.com
from within my Linode shell using just my previous ipv4 settings?


If both IPv6 and IPv4 are available, IPv6 will be used. Your Linode has IPv6, so it uses IPv6 to reach your site. If you remove the AAAA record on ingber.com until you get this figured out, it will start working OK.

You can probably get Apache to do the right thing by adding, to ports.conf:

Code:
NameVirtualHost [2600:3c01::f03c:91ff:fe93:e6f3]:80


And on each of your VirtualHosts, change the <VirtualHost> directive to:

Code:
<VirtualHost 173.255.212.226:80 [2600:3c01::f03c:91ff:fe93:e6f3]:80>

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Sun May 22, 2011 5:12 pm 
Offline
Senior Member

Joined: Sat Oct 23, 2010 12:56 pm
Posts: 73
Website: http://www.ingber.com
Location: Oregon
It seems the info on
http://ubuntuforums.org/showthread.php?t=935955
is correct.

That is, without any changes in my ipv4 settings,
elinks https:\[2600:3c01::f03c:91ff:fe93:e6f3\]
works fine (ssl)

I still have the problem with
elinks http:\[2600:3c01::f03c:91ff:fe93:e6f3\]
which fails because it cannot find
http://www.ingber.com
just like it cannot work with
http://www.ingber.com
but works fine with (ssl)
https://www.ingber.com


Thanks.

Lester

_________________
http://www.ingber.com


Last edited by ingber on Mon May 23, 2011 12:08 am, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Sun May 22, 2011 5:21 pm 
Offline
Senior Member

Joined: Sat Oct 23, 2010 12:56 pm
Posts: 73
Website: http://www.ingber.com
Location: Oregon
hoopycat:

Yes, I made the simple changes you suggested, and now http://www.ingber.com can be accessed from my Linode shell, for the reasons you stated re trying to first access my ipv6 records.

Everything seems to working OK, e.g., being able to access domain.com as well as ipv4 and ipv6 addresses under both http and https.

I'm glad the "little" problem of not being able to access http://domian.com under my Linode shell came up. It led to a more robust apache2 server.

Thanks.

Lester

_________________
http://www.ingber.com


Top
   
 Post subject:
PostPosted: Mon May 23, 2011 11:29 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Yup, looks good from here via IPv6 as well!

(It wasn't until a little while ago on IRC that I learned <VirtualHost> could take multiple arguments, so whoever mentioned that gets the credit!)

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group