1. Unable to access the picture
As can be seen from the above figure, whether the full path home/ftpuser/image access or/image access is used, the image access fails.
Let’s solve this problem
2. Configure nginx image access path
# Go to the conf directory of nginx, and find nginx.conf
# Edit profile
vi nginx.conf
# nginx.conf Add Configuration
location /image {
alias /home/ftpuser/image;
autoindex on;
}
3. Restart nginx
./nginx -s reload
4. Picture access succeeded
Read More:
- [Solved] nginx: [error] open() “/usr/local/nginx/nginx.pid” failed (2: No such file or directory)
- Nginx Startup Error: “/var/run/nginx/nginx.pid” failed” [How to Solve]
- Nginx error: nginx: [error] invalid PID number ““ in “/run/nginx.pid“
- Nginx Error: nginx: [emerg] the “ssl“ parameter requires ngx_http_ssl_module in /project/api/nginx.conf:
- Nginx Error: Swap file “/etc/nginx/.nginx.conf.swp“ already exists
- [Solved] Nginx Restart Error: /run/nginx.pid failed (2: No such file or directory)
- Nginx Startup Error: Job for nginx.service failed because the control process exited with error code
- Restart and stop of nginx in Linux service
- [Solved] Nginx Startup Error: directive is not allowed here in
- Common configuration methods of nginx
- Linux yum Error: All mirror URLs are not using ftp
- [Solved] FTP Setup Error: Job for vsftpd.service failed because the control process exited with error code…
- Nginx realizes the same background service for portal and business
- How to Fix No default.conf file in conf.d after Installing Nginx
- nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)
- Nginx configuration 80 can be accessed by forcing jump 443 or not
- [Solved] Node uploads files to FTP server error: timed out while making data connection
- Nginx Error: [emerg] bind() to [::]:80 failed (98: Address already in use)
- [Nginx] solution: it can’t be accessed on the background API interface after HTTPS (access the specified port through the domain name)
- Nginx Error: SSL: error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small