Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AH00547 with APACHE_PORT=127.0.0.1:8081 and network_mode=host #423

Open
nikos1988 opened this issue Aug 8, 2023 · 2 comments
Open

AH00547 with APACHE_PORT=127.0.0.1:8081 and network_mode=host #423

nikos1988 opened this issue Aug 8, 2023 · 2 comments

Comments

@nikos1988
Copy link

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.

@williamdes
Copy link
Member

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?

@nikos1988
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants