# 403 Forbidden Error

**URL:** <https://forum.ghost.org/t/403-forbidden-error/16516>\
**Category:** Installation\
**Created:** [August 15, 2020, 3:07pm UTC](https://forum.ghost.org/t/403-forbidden-error/16516 "2020-08-15T15:07:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![saumyabratadutt](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/saumyabratadutt/32/9303_2.png) [@saumyabratadutt](https://forum.ghost.org/u/saumyabratadutt)\
**Post date:** [August 15, 2020, 3:07pm UTC](https://forum.ghost.org/t/403-forbidden-error/16516/1 "2020-08-15T15:07:18Z")

</div>

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](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](http://hostitor.com/blog) shows 403 Forbidden Error

---

<div class="post-metadata">

**Author:** ![inoryum](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/inoryum/32/11866_2.png) [@inoryum](https://forum.ghost.org/u/inoryum)\
**Post date:** [August 15, 2020, 3:20pm UTC](https://forum.ghost.org/t/403-forbidden-error/16516/2 "2020-08-15T15:20:08Z")

</div>

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

```auto
 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](https://hostitor.com/blog)

---

<div class="post-metadata">

**Author:** ![saumyabratadutt](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/saumyabratadutt/32/9303_2.png) [@saumyabratadutt](https://forum.ghost.org/u/saumyabratadutt)\
**Post date:** [August 16, 2020, 3:39pm UTC](https://forum.ghost.org/t/403-forbidden-error/16516/3 "2020-08-16T15:39:29Z")

</div>

Now it is working. Thank you!

---

<div class="post-metadata">

**Author:** ![inoryum](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/inoryum/32/11866_2.png) [@inoryum](https://forum.ghost.org/u/inoryum)\
**Post date:** [August 16, 2020, 3:42pm UTC](https://forum.ghost.org/t/403-forbidden-error/16516/4 "2020-08-16T15:42:02Z")

</div>

You are welcome…Cheers!
