上传404
https://www.cnblogs.com/zuizui1204/p/7735695.html
403Forbidden最终解决方法:
方法二、在http{}内配置新服务
[java] view plain copy print?
- server {
- listen 8080;
- server_name localhost;
- #charset utf-8;
- #access_log logs/host.access.log main;
- #默认请求
- location / {
- root /home/ftpuser/www;#定义服务器的默认网站根目录位置
- index index.html index.php index.htm;#定义首页索引文件的名称
- }
- }
因为需要开始端口号8080,所以要在防火墙中开启8080端口
[java] view plain copy print?
- [root@localhost ]# /sbin/iptables -I INPUT -p tcp --dport 8080 -j ACCEPT
- [root@localhost ]# /etc/init.d/iptables save
- [root@localhost ]# /etc/init.d/iptables restart
https://blog.youkuaiyun.com/xiyaing/article/details/83061890