博主环境centOS7,安装vsftpd后,浏览器访问,更改nginx默认目录后访问失败
修改了nginx配置:
[root@localhost ~]# vim /usr/local/nginx/conf/nginx.conf
server {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root /home/ftpuser/www;(此处默认是html,这是修改后)
index index.html index.htm;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.