nginx: [emerg] invalid number of arguments in "root" directive in /www/server/panel/vhost/nginx/hr1.79524795.vip.conf:6 nginx: configuration file /www/server/nginx/conf/nginx.conf test failed
今天在宝塔Linux面板搭建一个项目的时候,提示故障无法打开,显示:
nginx: [emerg] invalid number of arguments in "root" directive in /www/server/panel/vhost/nginx/hr1.79524795.vip.conf:6
nginx: configuration file /www/server/nginx/conf/nginx.conf test failed
这是因为在 www/server/panel/vhost/nginx/hr1.79524795.vip.conf:6 nginx 这个路径里第六行这行代码里面有空格,去掉就好了

浙公网安备 33010602011771号