1. Install nginx
2. Install vsftpd
3. Modify nginx configuration file nginx.conf
3.1 Add ftp user in the first line
user ftpuser;
## 3.2 Configure related paths server { listen 80; #nginx proxy port Server_name localhost; #The address of the ftp server Location /images { Root /home/ftpuser; ## autoindex on; #Open file directory list
autoindex_exact_size on; #Display file size
autoindex_localtime on; ## }
4. Use the command ./nginx -s reload application configuration file
5. Use the command ./nginx -s quit to shut down nginx
6. Use the command ./nginx to start nginx
7. Enter the website access in the browserThe above is the detailed content of How to set up nginx reverse proxy ftp server. For more information, please follow other related articles on the PHP Chinese website!