Ghost Stopped Working at Domain URL

Posted April 26, 2017 1.8k views

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'

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
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.