Why some visitors cannot see my website properly?

Karl asked:

I bought my domain name (http://www.geekroo.com.au) from GoDaddy and set up my website on Linode VPS(using Linode DNS). I know little about website stuffs so I just simple followed the guides on linode.com to install Nginx plus other softwares.

I always get some reports from visitors, they say they can only see the default page of Nginx, not the proper website. Some other reports just simple say the website is “broken”.

It really makes me confused as the website is working for most visitors. Can someone please give me some tips or clues?

Thanks very much!


My answer:

You are missing a listen directive in your nginx server block.

Right now it looks like this:

server {
    listen 80;
    #...everything else

You need to add a line:

    listen 80;
    listen [::]:80;

The reason for this is that you have both IPv4 and IPv6, but you have only configured your virtual host to answer on IPv4. Thus, anyone who has IPv6 (like me) gets the default nginx page (which is set to answer on IPv6).

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.