Home  >  Article  >  Operation and Maintenance  >  How to set up nginx reverse proxy ftp server

How to set up nginx reverse proxy ftp server

WBOY
WBOYforward
2023-05-17 09:31:184682browse

1. Install nginx

2. Install vsftpd

3. Modify nginx configuration file nginx.conf

 3.1 Add ftp user in the first line

 user ftpuser;

How to set up nginx reverse proxy ftp server

## 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 nginxHow to set up nginx reverse proxy ftp server

7. Enter the website access in the browser

The 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!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete