# Delete port from the repository URL

**URL:** <https://community.cloudogu.com/t/delete-port-from-the-repository-url/529>\
**Category:** SCM-Manager (General)\
**Created:** [February 15, 2022, 12:27pm UTC](https://community.cloudogu.com/t/delete-port-from-the-repository-url/529 "2022-02-15T12:27:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![christian.pommer](https://dub1.discourse-cdn.com/flex013/user_avatar/community.cloudogu.com/christian.pommer/32/830_2.png) [@christian.pommer](https://community.cloudogu.com/u/christian.pommer)\
**Post date:** [February 15, 2022, 12:27pm UTC](https://community.cloudogu.com/t/delete-port-from-the-repository-url/529/1 "2022-02-15T12:27:24Z")

</div>

I run the SCM Manager with nginx as a reverse proxy on port 80. Everything works perfectly.  
I have set [https://contoso.de/scm](https://contoso.de/scm) as the base URL. Cloning repositories also works via [https://contoso.de/scm](https://contoso.de/scm). In the repository information section, however, [https://contoso.de:80/scm/](https://contoso.de:80/scm/)… is displayed. How can I delete the port?  
Thank you very much!

---

<div class="post-metadata">

**Author:** ![pfeuffer](https://dub1.discourse-cdn.com/flex013/user_avatar/community.cloudogu.com/pfeuffer/32/72_2.png) [@pfeuffer](https://community.cloudogu.com/u/pfeuffer)\
**Post date:** [February 15, 2022, 2:40pm UTC](https://community.cloudogu.com/t/delete-port-from-the-repository-url/529/2 "2022-02-15T14:40:19Z")

</div>

Hi, this sounds strange. Do you have configured Nginx following the [manual](https://scm-manager.org/docs/2.30.x/en/administration/reverse-proxies/), or to be specifig: Do you have configured the following header correctly? As far as I know, the host and the port is built from these information:

```auto
proxy_set_header X-Forwarded-Host $host:$server_port;

```

---

<div class="post-metadata">

**Author:** ![christian.pommer](https://dub1.discourse-cdn.com/flex013/user_avatar/community.cloudogu.com/christian.pommer/32/830_2.png) [@christian.pommer](https://community.cloudogu.com/u/christian.pommer)\
**Post date:** [February 15, 2022, 6:14pm UTC](https://community.cloudogu.com/t/delete-port-from-the-repository-url/529/3 "2022-02-15T18:14:23Z")

</div>

Thank you @pfeuffer, you asked the right question. I was making nonsense. Yes, I proceeded according to the manuel. But I wanted to automatically redirect from [contoso.de](http://contoso.de) to [contoso.de/scm](http://contoso.de/scm). I did that with proxy\_redirect, which is nonsense.  
Now everything works and the port is no longer displayed. Sorry!

---

<div class="post-metadata">

**Author:** ![felix.ebert](https://dub1.discourse-cdn.com/flex013/user_avatar/community.cloudogu.com/felix.ebert/32/1554_2.png) [@felix.ebert](https://community.cloudogu.com/u/felix.ebert)\
**Post date:** [July 22, 2022, 9:28am UTC](https://community.cloudogu.com/t/delete-port-from-the-repository-url/529/4 "2022-07-22T09:28:04Z")

</div>

I have closed this thread since there was no activity in the last 30 days.
