Ghost Stopped Working at Domain URL

April 26, 2017 1.2k 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?


server {
    listen 80;

    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;


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

        server: {
            host: '',
            port: '2368'
2 Answers

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.