# Website on custom port

**URL:** https://community.letsencrypt.org/t/website-on-custom-port/120872
**Category:** Help
**Created:** [April 27, 2020, 11:52am UTC](https://community.letsencrypt.org/t/website-on-custom-port/120872 "2020-04-27T11:52:26Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![andreas.hoffmann](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@andreas.hoffmann](https://community.letsencrypt.org/u/andreas.hoffmann)
#### Post date: [April 27, 2020, 11:52am UTC](https://community.letsencrypt.org/t/website-on-custom-port/120872/1 "2020-04-27T11:52:26Z")

</div>

I am trying to find out, if I can use let’s encrypt in my setup:

We are running a production-server and several test-servers behind a single IP.  
For this, port 80 is routed to a webserver that responds with the appropriate redirect:  
For production: [https://application.mydomain.com](https://application.mydomain.com)  
For testing: https://applicationtest\_x.mydomain.com:2044x

We then use the port to route the request to the appropriate webserver.

Since I thought that the CA follows redirects, I expected it to work. But during authorization, certification for the custom ports is rejected.

Is this an error on my side or is this the expected result for this case?

---

<div class="post-metadata">

### Author: ![danb35](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/danb35/32/70869_2.png) [@danb35](https://community.letsencrypt.org/u/danb35)
#### Post date: [April 27, 2020, 12:04pm UTC](https://community.letsencrypt.org/t/website-on-custom-port/120872/2 "2020-04-27T12:04:57Z")

</div>

> [@andreas.hoffmann](#):
>
> Is this an error on my side or is this the expected result for this case?

This is the expected result. LE will follow redirects, but only to (1) a different host, or (2) HTTPS. They won't follow redirects to other random ports.

---

<div class="post-metadata">

### Author: ![Osiris](https://avatars.discourse-cdn.com/v4/letter/o/839c29/32.png) [@Osiris](https://community.letsencrypt.org/u/Osiris)
#### Post date: [April 27, 2020, 12:16pm UTC](https://community.letsencrypt.org/t/website-on-custom-port/120872/3 "2020-04-27T12:16:46Z")

</div>

And, for as far as I know, (3) different paths (i.e., from /.well-known/acme-challenge/ to /foo/bar/). Not sure about the filename though.

The answer might even be “everything **but** the port” 😁

---

<div class="post-metadata">

### Author: ![\_az](https://avatars.discourse-cdn.com/v4/letter/_/22d042/32.png) [@\_az](https://community.letsencrypt.org/u/_az)
#### Post date: [April 27, 2020, 12:17pm UTC](https://community.letsencrypt.org/t/website-on-custom-port/120872/4 "2020-04-27T12:17:55Z")

</div>

Everything but the port and also (4) not raw IP addresses. 😛

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)
#### Post date: [May 27, 2020, 12:20pm UTC](https://community.letsencrypt.org/t/website-on-custom-port/120872/5 "2020-05-27T12:20:14Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
