403 Forbidden Error

If you’re looking for some help, it’s important to provide as much context as possible so that people are able to assist you. Try to always mention:

  • What’s your URL? This is the easiest way for others to debug your issue
    https://hostitor.com/blog

  • What version of Ghost are you using?
    Ghost-CLI version: 1.14.1
    Ghost version: 3.29.1

  • What configuration?
    OS - Ubuntu 18.04
    RAM - 1 GB
    Nginx

  • What browser?
    Any

  • What errors or information do you see in the console?
    ghost doctor shows no error

  • What steps could someone else take to reproduce the issue you’re having?
    I installed Ghost in /var/www/website.com/html/blog/ghost
    Since I already had Nginx installed, I choose not to install it during Ghost installation. There was no error while installing the Ghost but it doesn’t seem to be working as you can see hostitor.com/blog shows 403 Forbidden Error

Seems you have to configure nginx server block for your blog
Edit your domains server block … by default it sits at /etc/nginx/sites-available/yourdomain.com

& add the following codes between the server block

 location ^~ /blog {
    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_pass http://127.0.0.1:2368;
  }

restart nginx sudo systemctl restart nginx
& your blog will work at https://hostitor.com/blog

1 Like

Now it is working. Thank you!

1 Like

You are welcome…Cheers!

1 Like