can't access own site from within Linode ssh shell?
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
using elinks or firefox, getting
"The requested URL / was not found on this server."
although those browsers work just fine, e.g., with
I can access my site using
(my IPv4 Linode address) but not
http://[2600:3c01::f03c:91ff:fe93:e6f3]/
(my new IPv6 Linode address).
All the tests on
seem to work just fine.
I also can access
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
10 Replies
For what it's worth, your site is reachable OK via IPv4, but not by IPv6:
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…
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
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
/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
defaults-ssl.ipv6 has added an additional section
I found that
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
from within my Linode shell using just my previous ipv4 settings?
Thanks.
Lester
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]
@ingber:
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:
NameVirtualHost [2600:3c01::f03c:91ff:fe93:e6f3]:80
And on each of your VirtualHosts, change the
<virtualhost 173.255.212.226:80="" [2600:3c01::f03c:91ff:fe93:e6f3]:80=""></virtualhost>
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
just like it cannot work with
but works fine with (ssl)
Thanks.
Lester
Yes, I made the simple changes you suggested, and now
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
Thanks.
Lester
(It wasn't until a little while ago on IRC that I learned