# Issues with apache reverse proxy using the docker AIO image

**URL:** <https://help.nextcloud.com/t/issues-with-apache-reverse-proxy-using-the-docker-aio-image/166183>\
**Category:** 📦 Appliances (Docker, Snappy, VM, NCP, AIO)\
**Tags:** reverseproxy, docker, apache\
**Created:** [July 14, 2023, 9:31am UTC](https://help.nextcloud.com/t/issues-with-apache-reverse-proxy-using-the-docker-aio-image/166183 "2023-07-14T09:31:57Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![hexte](https://help.nextcloud.com/letter_avatar/hexte/32/6_22734026db12803ebb3e059622ac3534.png) [@hexte](https://help.nextcloud.com/u/hexte)\
**Post date:** [July 14, 2023, 10:11am UTC](https://help.nextcloud.com/t/issues-with-apache-reverse-proxy-using-the-docker-aio-image/166183/8 "2023-07-14T10:11:43Z")

</div>

The Nextcloud container itself is bound to port 8081 externally and it maps to 8080 inside the container but from how it’s documented in the example compose file (atleast how i understood it) is that the port declared with the environment variable “APACHE\_PORT” should be the one the proxy points to, in the examples that is 11000 and i just stuck with it.

I did also try setting up the reverse proxy to point to localhost:8081 in which case two things would happen, either I would get error 500 or it saying that I’m trying to access an HTTPS only service with an HTTP request.

---

_[View the full topic](https://help.nextcloud.com/t/issues-with-apache-reverse-proxy-using-the-docker-aio-image/166183)._
