# Domeinnaam controleren mislukt achter NGINX proxy

**URL:** <https://meta.discourse.org/t/checking-domain-name-fails-behind-nginx-proxy/167800>\
**Category:** Self-hosting\
**Created:** [20 oktober 2020 om 23:46 UTC](https://meta.discourse.org/t/checking-domain-name-fails-behind-nginx-proxy/167800 "2020-10-20T23:46:29Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![felixoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/felixoi/32/331959_2.png) [@felixoi](https://meta.discourse.org/u/felixoi)\
**Post date:** [20 oktober 2020 om 23:46 UTC](https://meta.discourse.org/t/checking-domain-name-fails-behind-nginx-proxy/167800/1 "2020-10-20T23:46:29Z")

</div>

Hey there.

I’m trying to spin up a discourse instance on a vm which only has an internal ip address and can only be reached over a nginx proxy on another vm. Therefor the proxy contains the following config:

```plaintext
upstream forums {
    server 10.240.10.19:443;
    server 10.240.10.19:80;
}

server {
    listen 443 ssl;
    server_name SECRET;

    access_log /var/log/nginx/SECRET_access.log;
    error_log /var/log/nginx/SECRET_error.log;

    location / {
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $remote_addr;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Real-IP $remote_addr;
        add_header X-Host $host;
        expires 0m;
        proxy_pass http://forums;
    }

    ssl_certificate /etc/letsencrypt/live/SECRET/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/SECRET/privkey.pem;
    include /etc/letsencrypt/options-ssl-nginx.conf;
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
}

```

Trying to use discourse-setup i get the error:

```plaintext
WARNING: Port 443 of computer does not appear to be accessible using hostname: SECRET
WARNING: Connection to http://SECRET (port 80) also fails.

```

Just editing the stuff in containers/app.yml worked fine at first and the instance was reachable. Trying to obtain a ssl cert using the inbuild letsencrypt stuff also failed tho. So I guess something is wrong here and I hope someone of you knows what it is.

Thanks,  
felixoi

---

_[View the full topic](https://meta.discourse.org/t/checking-domain-name-fails-behind-nginx-proxy/167800)._
