No Host DNS record found. Add the following to /etc/hosts: 127.0.0.1 host.example.com
What went wrong?
If in a project template there is a comment (line starting with a #) that is not in line with yaml intendation, no vhost conf in http's /etc/httpd/vhost.d/ is created. But neither is a message printed to the docker-compose output.
472 seems similar, but I can't find the output of any error.
Maybe I'm just missing the error output, but the error indicated in /vhosts.php is certainly misleading.
Expected behaviour
Instead of
No Host DNS record found. Add the following to /etc/hosts: 127.0.0.1 host.example.com
a message like vhost configuration missing (since the file does not exist in http's /etc/httpd/vhost.d/ directory) or even better vhost configuratoin could not be generated would be more helpful.
How can we reproduce the bug?
Copy the
and e.g. comment out the line
error_log "__ERROR_LOG__" warn;
like so:
# error_log "__ERROR_LOG__" warn;
(re)start devilbox and check the "Virtual Hosts" page (/vhosts.php, http://localhost/vhosts.php) of the Devilbox control panel.
Removing the hash or adding it just in front of the error_log and restart the devilbox and all is well:
Have you already looked into this bug?
(Optional) Error message
No Host DNS record found. Add the following to /etc/hosts: 127.0.0.1 host.example.com
What went wrong?
If in a project template there is a comment (line starting with a
#
) that is not in line with yaml intendation, no vhost conf in http's/etc/httpd/vhost.d/
is created. But neither is a message printed to the docker-compose output.472 seems similar, but I can't find the output of any error.
Maybe I'm just missing the error output, but the error indicated in
/vhosts.php
is certainly misleading.Expected behaviour
Instead of
a message like
vhost configuration missing
(since the file does not exist in http's/etc/httpd/vhost.d/
directory) or even bettervhost configuratoin could not be generated
would be more helpful.How can we reproduce the bug?
Copy the
and e.g. comment out the line
like so:
(re)start devilbox and check the "Virtual Hosts" page (
/vhosts.php
, http://localhost/vhosts.php) of the Devilbox control panel.Removing the hash or adding it just in front of the
error_log
and restart the devilbox and all is well:Host Operating System
Linux
Host Platform (amd64, arm64, other)
amd64
(Linux only) Is SELinux enabled?
Yes, SELinux is enabled
Docker version
Docker version 24.0.6, build ed223bc
Docker Compose version
docker-compose version 1.29.2, build unknown
Devilbox version
986f0463 (HEAD -> master, origin/master, origin/HEAD) Merge pull request #957 from nickchomey/patch-1
Have you removed stopped containers before starting?
Yes
Have you pulled latest Docker images before starting?
Yes
Devilbox start command
docker-compose down && docker-compose up php httpd mysql
Config: .env file
Config: docker-compose.override.yml
Config: ./check-config.sh
Log: docker-compose logs
(Optional) Additional information
No response