20201107 Lesson 16, Use Apache service to deploy static website; use Vsftpd service to transfer files

Virtual website hosting function

20201107 Lesson 16, Use Apache service to deploy static website; use Vsftpd service to transfer files

Pache's virtual host function is a technology that the server provides multiple websites and provides external access services based on different IP addresses, host domain names or port numbers requested by users. The resources requested by users are different, and the content of the web pages finally obtained is also different. the same.

Based on the host domain name
When the server cannot assign an independent IP address to each website, you can try to let Apache automatically recognize the domain name requested by the user, so as to transmit different content according to different domain name requests. In this case, the configuration is simpler, just need to ensure that there is an available IP address on the server in the production environment. /etc/hosts is a configuration file used in the Linux system to forcibly resolve a host domain name to a specified IP address.

Apache can control the access to the resources on the website based on the source host name, source IP address, or browser characteristics on the source host. It allows a host to access the website resources on the server through the Allow instruction, and prohibits access through the Deny instruction. When allowing or prohibiting access to website resources, the Order command is also used. This command is used to define the order in which the Allow or Deny commands work. The matching principle is to match in order. If the match is successful, the following default commands are executed.

File Transfer Protocol (File Transfer Protocol, FTP)
vsftpd service program three authentication modes (anonymous open mode, local user mode, virtual user mode)
pluggable authentication module (Pluggable Authentication Module, PAM)
simple file transfer protocol (Trivial File Transfer) Protocol, TFTP)

20201107 Lesson 16, Use Apache service to deploy static website; use Vsftpd service to transfer files

20201107 Lesson 16, Use Apache service to deploy static website; use Vsftpd service to transfer files20201107 Lesson 16, Use Apache service to deploy static website; use Vsftpd service to transfer files
20201107 Lesson 16, Use Apache service to deploy static website; use Vsftpd service to transfer files

Guess you like

Origin blog.51cto.com/14951072/2547614