# Quation about IPFS Nginx Gateway

**URL:** <https://discuss.ipfs.tech/t/quation-about-ipfs-nginx-gateway/3294>\
**Category:** Ecosystem and Usage\
**Tags:** go-ipfs\
**Created:** [June 28, 2018, 2:26pm UTC](https://discuss.ipfs.tech/t/quation-about-ipfs-nginx-gateway/3294 "2018-06-28T14:26:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![VSea](https://avatars.discourse-cdn.com/v4/letter/v/ed655f/32.png) [@VSea](https://discuss.ipfs.tech/u/VSea)\
**Post date:** [June 28, 2018, 2:26pm UTC](https://discuss.ipfs.tech/t/quation-about-ipfs-nginx-gateway/3294/1 "2018-06-28T14:26:24Z")

</div>

To make my own IPFS gateway.  
I setup up IPFS (go-ipfs) and init it.  
Then config nginx, proxy https(443) request to ipfs port 8080.

My page (“[https://ipfs.mydomain.com/webui](https://ipfs.mydomain.com/webui)”， .e.g) has something wrong.  
Html/JS content is ok，but api request is bad，because the url is http and port 443。 such as “[http://ipfs.mydomain.com:443/api/v0/id?stream-channels=true](http://ipfs.mydomain.com:443/api/v0/id?stream-channels=true)”

What happen?

My Nginx Config:

```
    server {
            server_name ipfs.mydomain.com;
            listen 443 ssl;
            ssl on;
            ssl_certificate /root/.ipfs/https_full_chain.pem;
            ssl_certificate_key /root/.ipfs/https_private.key;
            ssl_session_timeout 5m;
            ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
            ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
            ssl_prefer_server_ciphers on;

            charset UTF-8;
            location / {
                  proxy_pass http://127.0.0.1:8080;
                  proxy_http_version 1.1;
                  proxy_set_header Host $host;
                  proxy_cache_bypass $http_upgrade;
            }
    }
```

---

<div class="post-metadata">

**Author:** ![stebalien](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/stebalien/32/156_2.png) [@stebalien](https://discuss.ipfs.tech/u/stebalien)\
**Post date:** [June 28, 2018, 5:03pm UTC](https://discuss.ipfs.tech/t/quation-about-ipfs-nginx-gateway/3294/2 "2018-06-28T17:03:58Z")

</div>

The webui doesn’t run on the gateway, it runs on the API (different port). Am I missing something in your setup? If [ipfs.mydomain.com](http://ipfs.mydomain.com) proxies to localhost:8080 (the gateway), [ipfs.mydomain.com/webui](http://ipfs.mydomain.com/webui) should give a 404.

However, assuming I am missing something in your setup, the following issue is likely relevant:

> <https://github.com/ipfs-shipyard/ipfs-webui/issues/611>
