# XWiki adds port 80 to URL

**URL:** <https://forum.xwiki.org/t/xwiki-adds-port-80-to-url/9200>\
**Category:** Help / Discuss\
**Tags:** installation\
**Created:** [September 17, 2021, 8:28am UTC](https://forum.xwiki.org/t/xwiki-adds-port-80-to-url/9200 "2021-09-17T08:28:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sspringer](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/s/e9c0ed/32.png) [@sspringer](https://forum.xwiki.org/u/sspringer)\
**Post date:** [September 17, 2021, 8:28am UTC](https://forum.xwiki.org/t/xwiki-adds-port-80-to-url/9200/1 "2021-09-17T08:28:19Z")

</div>

I am trying to run XWiki on `https:mydomain/xwiki` in tomcat running on (local) port 8080 behind nginx, and on the first call of that site I get the following error:

```nohighlight
Failed to extract Entity Resource Reference from URL [https://mydomain:80/xwiki/bin/view/Main/]

```

Of course, `https://mydomain:80` is not available.

My nginx configuration (part):

```nohighlight
        location ~ ^/(xwiki|some_other_tomcat_apps)(/|$) {
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;

            proxy_pass http://localhost:8080;

            proxy_read_timeout 90;

            proxy_redirect http://localhost:8080 https://mydomain;
            expires 0m;
        }

```

---

<div class="post-metadata">

**Author:** ![dahin](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/d/779978/32.png) [@dahin](https://forum.xwiki.org/u/dahin)\
**Post date:** [September 23, 2021, 12:40pm UTC](https://forum.xwiki.org/t/xwiki-adds-port-80-to-url/9200/2 "2021-09-23T12:40:37Z")

</div>

Why don’t your redirect the traffic from 80 to 8080?
