Add a virtual host and upload the website via sftp or ftp server (Linux+LNMP)

First of all, you must have configured the environment according to the method of this site tutorial, Linux+LNMP

1, add a virtual host

The popular point is to add a website (domain name) to the VPS/service provider.

You need to execute the following command: /root/ After the execution, the following interface will appear:

Enter the domain name to be bound here. For example, if I want to add, enter and press Enter. If you type one or more letters, hold down Ctrl and press Backspace to delete. The following prompt will appear:

This step prompts whether you want to add more domain names to the website, if you want to tie or more.

        Note: The domain name with www and without www is different. If you want to bring the www and the domain name of www without accessing the same website, you need to be bound at the same time).

If you need to add more domain names, you do not need to enter n Enter directly. If you need to enter y carriage return.



Enter the domain name to be additionally bound. Multiple domain names can be separated by spaces.

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How to choose the cloud server?

★ Choose the right cloud server configuration based on your actual business needs: Understand...

How do I connect to my cloud server? (including linux and windows)

First of all to distinguish between linux and windows, including ubuntu, centos, debian are...

linux system data disk merged into the system disk

 Check it out, the current command: df -h [[email protected] ~]# df -h Filesystem...

Linux cloud server data disk expansion tutorial guide

This tutorial belongs to the data disk expansion [non-system disk] default directory /dev/sdb...

About the automatic synchronization of cloud server time, and the problem that time cannot be modified.

Recently, there have been user feedback, cloud server time cannot be modified. The solution is...