Home>Article>Topics> Regarding the issue of developing multiple domain names in Pagoda

Regarding the issue of developing multiple domain names in Pagoda

藏色散人
藏色散人 forward
2021-03-26 17:22:08 2675browse

The following tutorial column ofPagodawill introduce to you the issues of multi-domain name development in Pagoda. I hope it will be helpful to friends in need!

Regarding the issue of developing multiple domain names in Pagoda

Pagoda development multiple domain name issues

[Problem description]

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
Regarding the issue of developing multiple domain names in Pagoda

The above is the detailed content of Regarding the issue of developing multiple domain names in Pagoda. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete