Ghost Stopped Working at Domain URL

April 26, 2017 243 views
Ghost Ubuntu

Restarted Ghost recently and not can't get to the site via the domain URL. Not sure what happened. Tried looking into config.js and sites-enabled with no help.

Any ideas?

sites-enabled

server {
    listen 80;
    server_name shinyidol.us;

    return 301 https://$server_name$request_uri;

    root /usr/share/nginx/html;
    index index.html index.htm;

    client_max_body_size 10G;

    location / {
        proxy_pass http://localhost:2368;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $http_host;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_buffering off;
    } 
}

config.js

    production: {
        url: 'http://shinyidol.us',
        mail: {},
        database: {
            client: 'sqlite3',
            connection: {
                filename: path.join(__dirname, '/content/data/ghost.db')
            },
            debug: false
        },

        server: {
            host: '127.0.0.1',
            port: '2368'
        }
    },
2 Answers
hansen April 26, 2017
Accepted Answer

Hi @collin.moore
Did you try to add https at some point? Remove this line from Nginx configuration and restart Nginx:

    return 301 https://$server_name$request_uri;

Thanks @hansen

That solved the problem. Not sure how or why that got added.

Have another answer? Share your knowledge.