No Nginx.



  • He writes when he comes to localhost.

    No input file specified.

    Here's the NGINX configuration.

    server {
         listen       80;
          server_name  yii2-basic.local;
          root  F:\web\test\web;
    

    location / {
    try_files $uri $uri/ /index.php?$args; # Redirect everything that isn't real file to index.php including arguments.
    }

    location ~ .php$ {
    include fastcgi.conf;
    fastcgi_pass 127.0.0.1:9000;
    }

    location ~ /.(ht|svn) {
    deny all;
    }


    from the comment:

    That's what I found in the logs:

    2015/12/16 18:42:48 [crit] 19172#18520: *1 GetFileAttributesEx() "F:\web est/" failed (123: The filename, directory name, or volume label syntax is incorrect), client: 127.0.0.1, server: yii2-basic.local, request: "GET / HTTPal/1,



  • root F:\web\test\web;

    The path should be indicated in "unix style " :

    root  F:/web/test/web;
    

    otherwise there is an interpretation of " escape-consistencies " and, for example, \t It turns into a symbol of the taboo, which can be seen from the buckle:

    "F:\web est/" failed (123: The filename, directory name, or volume label syntax is incorrect)




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2