| Linode Forum https://forum.linode.com/ |
|
| can't access own site from within Linode ssh shell? https://forum.linode.com/viewtopic.php?f=19&t=7142 |
Page 1 of 1 |
| Author: | ingber [ Sun May 22, 2011 1:44 pm ] |
| Post subject: | can't access own site from within Linode ssh shell? |
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 |
|
| Author: | hoopycat [ Sun May 22, 2011 2:06 pm ] |
| Post subject: | |
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 So I'm guessing your VirtualHosts aren't paying attention to the IPv6 address... |
|
| Author: | ingber [ Sun May 22, 2011 3:00 pm ] |
| Post subject: | |
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 |
|
| Author: | vonskippy [ Sun May 22, 2011 3:30 pm ] |
| Post subject: | |
Here's a good howto on running a dual stack Apache Virtual Host http://www.cyberciti.biz/faq/ipv6-apach ... -tutorial/ |
|
| Author: | ingber [ Sun May 22, 2011 3:50 pm ] |
| Post subject: | |
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 |
|
| Author: | ingber [ Sun May 22, 2011 4:18 pm ] |
| Post subject: | |
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 |
|
| Author: | ingber [ Sun May 22, 2011 4:37 pm ] |
| Post subject: | |
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] |
|
| Author: | hoopycat [ Sun May 22, 2011 4:58 pm ] |
| Post subject: | |
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> |
|
| Author: | ingber [ Sun May 22, 2011 5:12 pm ] |
| Post subject: | |
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 |
|
| Author: | ingber [ Sun May 22, 2011 5:21 pm ] |
| Post subject: | |
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 |
|
| Author: | hoopycat [ Mon May 23, 2011 11:29 am ] |
| Post subject: | |
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!) |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|