# 403 Forbidden (nginx) error - (reverse proxy)

**URL:** https://community.kinsta.com/t/403-forbidden-nginx-error-reverse-proxy/1096
**Category:** Application Support
**Created:** [November 5, 2021, 2:10pm UTC](https://community.kinsta.com/t/403-forbidden-nginx-error-reverse-proxy/1096 "2021-11-05T14:10:34Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)
#### Post date: [November 5, 2021, 2:44pm UTC](https://community.kinsta.com/t/403-forbidden-nginx-error-reverse-proxy/1096/2 "2021-11-05T14:44:24Z")

</div>

Hi @lucas7c ! I’m happy to help. Yeah, due to it being a reverse proxy, unfortunately it’ll require a few additional configurations here for it to work. This may not be ideal as any edits made the nginx configuration will reset on any restarts/shutdowns/upgrades thus having to make those configurations again. [There is a feature request here for the ability to edit nginx easily](https://community.kinsta.com/t/ability-to-upload-custom-nginx-rules/378).

If you’re interested in editing nginx, [we have a post here that might help with that](https://community.kinsta.com/t/are-nginx-rules-transferred-to-and-from-devkinsta/366/2). Essentially you’ll need to change the root directory on nginx to load from the reverse proxy sub-directory. Additionally, you’ll need to add `rewrite ^/subsite-will-load-here/(.*)$ /$1 last;` within nginx to ensure it loads from the sub-directory.

Let me know if you have any questions along the way on setting this up.

---

_[View the full topic](https://community.kinsta.com/t/403-forbidden-nginx-error-reverse-proxy/1096)._
