1. I use php to develop projects
2. There are many projects
3. The environment I use is nginx php-fpm
4. Each time a new project is added, in order to facilitate local debugging and not affect other I need to add a new host for project development. Configure server_name in nginx to distinguish different projects.
xx1.xx.com 127.0.0.1 xx2.xx.com 127.0.0.1
[Problem Analysis]
All my A records point to 127.0.0.1. Is there a pan-domain name resolution that can be used? Point to 127.0.0.1, no need to repair 127.0.0.1 every time
Now that I have it, I added a pan-domain name resolution in my dns
*.localhost.litongjava.com 127.0.0.1
Because it points to 127.0.0.1, it does not exist Domain name conflict problem
The test results are as follows