dongzeao5047 2015-04-22 19:09
浏览 27
已采纳

使用Nginx时没有指定输入文件

I just create a server recently, and use Nginx as my web server.

I did : service nginx force-reload

  • Reloading nginx configuration nginx [ OK ]

Then I do service nginx status

  • nginx is running

Knowing that my site is running, but when I go to it. I see No input file specified. Wired ???

Here is what I have in my /etc/nginx/sites-available/default

server {
    listen 80 default_server;
    server_name default;
    root /default/public;

Can someone please help me fix this ?

  • 写回答

1条回答 默认 最新

  • doue8385 2015-04-22 19:22
    关注

    I fix this problem by assign my document root to the correct path :

    root /home/forge/default/public;

    If you see No input file specified., make sure you set your root to the correct path.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 请问这个是什么意思?
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
  • ¥15 模糊pid与pid仿真结果几乎一样