Virtual website host function
pache The virtual host function of the server is based on different user requests IP Address 、 Host domain name or port number , Realize the technology of providing multiple websites to provide external access services at the same time , The resources requested by users are different , Finally, the content of the web page is different .
Based on the host domain name
When the server can't assign each site a separate IP At the address , You can try to make Apache Automatically identify the domain name requested by the user , So as to transmit different contents according to different domain name requests . In this case, the configuration is simpler , Just make sure that there is an available IP The address will do ./etc/hosts yes Linux The system is used to force the resolution of a host domain name to the specified IP Address profile .
Apache Can be based on the source host name 、 Source IP Information such as address or browser characteristics on the source host controls access to resources on the website . It passes through Allow Command to allow a host to access Web site resources on the server , adopt Deny The instruction implementation forbids access . When you allow or prohibit access to web resources , Still can use Order Instructions , This instruction is used to define Allow or Deny The order in which instructions work , The matching principle is to match in order , If the match is successful, the following default instruction will be executed .
File transfer protocol （File Transfer Protocol,FTP）
vsftpd Three authentication modes of service program （ 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）