docker icon indicating copy to clipboard operation
docker copied to clipboard

AH00547 with APACHE_PORT=127.0.0.1:8081 and network_mode=host

Open nikos1988 opened this issue 2 years ago • 2 comments

Using APACHE_PORT=127.0.0.1:8081 and network_mode: host works but results in AH00547 errors. Since the entrypoint.sh script replaces the VirtualHost part in 000-default.conf with "<VirtualHost *:127.0.0.1:8081>" it results in errors. /etc/apache2/ports.conf replace works fine: "Listen 127.0.0.1:8081"

I wanted to use a reverse proxy and also access mysql on my docker host where port 3306 is also restricted to localhost. So i tried using APACHE_PORT=127.0.0.1:8081 since the port does not have to be accessible from the outside. This works fine btw.

nikos1988 avatar Aug 08 '23 11:08 nikos1988

Hi @nikos1988 It's named APACHE_PORT so it's only a port We could have APACHE_ADDRESS too

The best for you is to remove the address from the ENV and it should work I can mark this one as an enhancement to add the address ENV?

williamdes avatar Aug 08 '23 11:08 williamdes

Yes, this would be a nice addition at least for my use case

nikos1988 avatar Aug 08 '23 11:08 nikos1988