Closed umaneyes closed 11 months ago
I solved my issue
in my case : open terminal macos cd /etc sudo vi hosts edit file "host" in vi : just bellow existing line: 127.0.0.0 localhost add this line : 127.0.0.1 myProject.dvl.to exit from vi edit save file "hosts" in vi quit vi without restarting Docker reload page myProject.dvl.to it work
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 myProject.dvl.to
What went wrong?
virtual hosts not responding page http://localhost/vhosts.php display : "ERR" "No Host DNS record found. Add the following to /etc/hosts: 127.0.0.1 myProject.dvl.to" from te frontend in my browser I get cors errors : "Access to XMLHttpRequest at 'http://myproject.dvl.to/devilbox-api/status.json' from origin 'http://localhost' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."
This happened unexpectedly after normal operation for 7 months without any problem and identically on my second machine with a Devilbox and Docker fresh and last install .
Expected behaviour
I need to access to my sites
How can we reproduce the bug?
cd devilbox docker-compose up -d browse to localhost/vhosts.php
Host Operating System
macOS
Host Platform (amd64, arm64, other)
amd64
(Linux only) Is SELinux enabled?
no linux
Docker version
4.15
Docker Compose version
2.15.1
Devilbox version
v3.0.0-beta-0.3
Have you removed stopped containers before starting?
Yes
Have you pulled latest Docker images before starting?
Yes
Devilbox start command
docker-compose up bind httpd php mysql
or
docker-compose up -d
Config: .env file
Config: docker-compose.override.yml
Config: ./check-config.sh
Log: docker-compose logs
(Optional) Additional information
No response