Yesterday Lao Zuo shared“ Linux VPS CentOS Installation LNMP System Environment Tutorial "Some friends said that there have been similar tutorials on the Internet, which may be unnecessary for you to publish again. I think it is necessary, for one thing, to learn how to use them myself, and for another, to take notes when I use them, so that I can use them directly next time. At the same time, others' are others', so I still need to sort them out. It's like what I've sorted out from now on LNMP I will record the whole process of using LNMP from this article to the final maintenance and upgrade. I believe that through such accumulation, it is also a good reference for novices like me in the future. What do you think?
Today, after I installed the tutorial foundation yesterday, I added the site we need to build the website. Although we added the domain name yesterday when we added the main domain name, it is far from enough. We need to add different domain names to establish multiple websites. Today is to share how to add multiple domain names to establish websites in VPS, also based on LNMP.
The first step is to log in to our VPS and add a virtual host using the following command:;
The second step is to see the interface as shown in the figure above. It should be noted that entering WWW and not entering WWW represent different directory domain names, so I suggest that you use whatever domain name you want to use. Some friends like WWW, and some prefer not to bring WWW directly.
The third step is to ask whether we need to add more than one domain name. We can choose N or Y. The default path file is wwwroot followed by our domain name as a directory. This is good. We can directly see which domain name corresponds to which.
The fourth step is to ask whether we need to add pseudo static. Generally, LNMP defaults to such common CMSs as DISCUZ and WORDPRESS. If there are additional CMSs, we need to add them ourselves. We will talk about this later. Here we generally select N.
The fifth step is to ask whether we need to create log files. I do not recommend creating log files because they occupy too much system content after creation. The same is N, and then press any key to install them.
So we will add the domain name laozuo.org to our VPS. In this way, we can start the journey of building a website by resolving the A record of the domain name to the IP address of the VPS. In the next article, I will share how to directly use commands to install WORDPRESS and set up a blog to improve efficiency.
Scan the code to follow the official account
Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge