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

Regarding the issue of developing multiple domain names in Pagoda

藏色散人
Release: 2021-03-26 17:22:08
forward
2794 people have browsed it

The following tutorial column of Pagoda will 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
Copy after login

[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
Copy after login

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!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template