Previously shared
#WebsiteBuilding# LNMP One-Click Package Installation Graphic and Video TutorialAfter that, this article shares how to use LNMP to add a virtual host tutorial.
LNMP Adding Virtual Host Graphic Tutorial
After connecting to the VPS via SSH, enter the command to add a virtual host: lnmp vhost add, then press Enter. The following prompt will appear:

Enter the domain name you want to bind here, then press Enter.

Here you are asked if you need to bind other domains
What does this mean?For example, if you need both www.naibabiji.com and naibabiji.com to access the same website, then you need to enter it here; otherwise, just press Enter to skip.

Here you set the website directory. Just press Enter, and the website directory will be set to the domain folder under /home/wwwroot.

Whether to enable pseudo-static, enter y and press Enter.

Enter the pseudo-static rules here. For installing WordPress, simply enter 'wordpress'. If WordPress is installed in a subdirectory, enter 'wp2'.

Enable website logs? y to enable, n to disable.

If enabled, you need to enter the name of the log to be set. The default log directory is: /home/wwwlogs/ and the default filename is: domain.log

Create a database? Choose yes. If you want to create it manually or use a database from elsewhere, then choose n.

Enter the database password, then enter the database name and password to create, and press Enter.

Then enter y to generate an SSL certificate, and enter 2 to create a free Let's Encrypt certificate. If you have your own certificate, enter 1 and then enter the corresponding certificate location.

The appearance of the above interface indicates that the virtual host has been successfully added.
LNMP Add Virtual Host Video Tutorial
https://v.youku.com/v_show/id_XNDE4NTY3NzQ1Mg==.html?spm=a2h3j.8428770.3416059.1 If you still have questions, you can add WeChat or join the group for discussion.
Comments are closed
The comment function for this article is closed. If you have any questions, please feel free to contact us through other channels.