# 403 Error when changing any settings after enabling force\_https with proxy

**URL:** <https://meta.discourse.org/t/403-error-when-changing-any-settings-after-enabling-force-https-with-proxy/132246>\
**Category:** Product Support\
**Created:** [October 30, 2019, 3:51pm UTC](https://meta.discourse.org/t/403-error-when-changing-any-settings-after-enabling-force-https-with-proxy/132246 "2019-10-30T15:51:38Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![cryocaustik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cryocaustik/32/82573_2.png) [@cryocaustik](https://meta.discourse.org/u/cryocaustik)\
**Post date:** [October 31, 2019, 3:31am UTC](https://meta.discourse.org/t/403-error-when-changing-any-settings-after-enabling-force-https-with-proxy/132246/3 "2019-10-31T03:31:11Z")

</div>

I am running it on a server with another PHP application, so I am using an Nginx proxy pass; my nginx configuration:

```nginx
server {
  server_name site_url;
  client_max_body_size 500m;

  location / {
      proxy_pass http://127.0.0.1:8080;
  }

    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/site_url/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/site_url/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

}
server {
    if ($host = site_url) {
        return 301 https://$host$request_uri;
    } # managed by Certbot

  listen 80;
  server_name site_url;
    return 404; # managed by Certbot
}

```

---

_[View the full topic](https://meta.discourse.org/t/403-error-when-changing-any-settings-after-enabling-force-https-with-proxy/132246)._
