doujiaci7976 2016-01-19 04:56
浏览 161

在debian上启动nginx服务时出错

Server OS:Debian 8 "Jesse"

I have tried to run the nginx service using "sudo service nginx start" which will result in failure. I then use the command "sudo nginx -t" to see what the issue is and this is the error that appears

nginx: [emerg] invalid number of arguments in "root" directive in /etc/nginx/sites-enabled/default:39

nginx: configuration file /etc/nginx/nginx.conf test failed

For more background here are lines 36 - 39 of my /etc/nginx/sites-enabled/default file

root /var/www/my_web_directory
# Add index.php to the list if you are using PHP
index index.php index.html index.htm;

More back story for anyone who may need to know. Im trying to run mybb this is why I added "index.php" to the file

This issue has really been bothering me and I dont know any way to get around this. So if any has any answers please post your response. If you need anymore details feel free to ask and I will provide.

-John

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
    • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 ubuntu子系统密码忘记
    • ¥15 保护模式-系统加载-段寄存器
    • ¥15 电脑桌面设定一个区域禁止鼠标操作
    • ¥15 求NPF226060磁芯的详细资料