# Force\_https not working with GCP Ingress

**URL:** <https://meta.discourse.org/t/force-https-not-working-with-gcp-ingress/130593>\
**Category:** Product Support\
**Tags:** unsupported-install\
**Created:** [October 9, 2019, 5:16pm UTC](https://meta.discourse.org/t/force-https-not-working-with-gcp-ingress/130593 "2019-10-09T17:16:37Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![P16](https://avatars.discourse-cdn.com/v4/letter/p/b19c9b/32.png) [@P16](https://meta.discourse.org/u/P16)\
**Post date:** [October 9, 2019, 11:17pm UTC](https://meta.discourse.org/t/force-https-not-working-with-gcp-ingress/130593/7 "2019-10-09T23:17:58Z")

</div>

Thanks, is the backend showing up as healthy in the load balancer? Please also add `www.yoursite.com` to the host (under more).

Also, here is what I add to my app.yml:

> ```
> after_web_config:
> - replace:
> filename: "/etc/nginx/conf.d/discourse.conf"
> from: /server.+{/
> to: |
> server {
> if ($http_x_forwarded_proto = 'http'){
> return 301 https://$host$request_uri;
> }
> 
> ```

It won’t be necessary for too long as Google will be adding an http to https redirector this quarter.

---

_[View the full topic](https://meta.discourse.org/t/force-https-not-working-with-gcp-ingress/130593)._
