url returns different page depending on www.rikroukens.com or rikroukens.com [GHOST]

July 24, 2018 421 views
Ghost DNS Nginx One-Click Install Apps Ubuntu 16.04

Hi,

After installing my ghost on my droplet and connecting my url to it [www.rikroukens.com] my website appears to be working. However, when I type in rikroukens.com (so without prefix www.) it redirects to the "Please log into your droplet via SSH to configure your Ghost installation." page. which is not present when going to www.rikroukens.com.

an A record is present directing rikroukens.com to the right droplet;

```A www.rikroukens.com directs to 206.189.96.242
NS rikroukens.com directs to ns1.digitalocean.com.
NS rikroukens.com directs to ns2.digitalocean.com.
NS rikroukens.com directs to ns3.digitalocean.com.
A rikroukens.com directs to 206.189.96.242

Does anyone have any suggestions?

Thanks so much,

Rik

1 Answer

Hello friend!

I am seeing the same content with and without www right now. However, the SSL certificate is only signed for www, you should probably make sure it is signed for both. When running LetsEncrypt certbot you pass the -d flag like this:

-d domain.com -d www.domain.com

Kind Regards,
Jarland

  • Hi Jarland,

    Thank you very much, you answer seems simple enough, sadly while i have run certbot previously, when I run it now with the double domain name i get errors on both domain names.

    The following errors were reported by the server:
    
       Domain: www.rikroukens.com
       Type:   unauthorized
       Detail: Invalid response from
       http://www.rikroukens.com/.well-known/acme-challenge/I2VlJKPMrfF2AVsBHoUndnNVbW45Qoaj8DWFoJzw4TI:
       "<html>
       <head><title>404 Not Found</title></head>
       <body bgcolor="white">
       <center><h1>404 Not Found</h1></center>
       <hr><center>"
    
       Domain: rikroukens.com
       Type:   unauthorized
       Detail: Invalid response from
       http://rikroukens.com/.well-known/acme-challenge/Q8BniQNHHtsEjUa0X-fM2uzuLcpu595_xqU4qKm0uN0:
       "<html>
       <head><title>404 Not Found</title></head>
       <body bgcolor="white">
       <center><h1>404 Not Found</h1></center>
       <hr><center>"
    

    Going to research how to solve them, but hoping you might have an easy solution in the meantime. Thanks so much for your initial response!

    Rik

Have another answer? Share your knowledge.