Tag Archives: Nginx configuration error GetFileAttributesEx

Windows: Nginx configuration error GetFileAttributesEx

Because there are bright spots on the computer screen, I took it to change the screen, so I used the windows environment and installed the wlmp environment

When configuring Nginx, I found that there is no problem with the configuration, but I can’t access it all the time.

, 2015 / 08 / 24  15 : 03 : 59 [Crit] 4560 # 3796 : * 222 GetFileAttributesEx () " D: \ wwwroot \ hj_app 
ES / CSS / Web / coach_join.css / index.html " failed (123: of The filename, directory name, or volume label syntax is incorrect)

Sister, it depends on the situation that the root directory is incorrect. At first, I always thought it was a rewrite problem. The key is the main domain name I configured.

A The virtual host root configuration is: access to the secondary directory root d:\wwwroot\a is no problem, but the configured resource domain name

The configuration of B virtual host root is: access to the third-level directory root d:\wwwroot\a\bb, and an error is reported.

What the log shows is:

CreateFile() " D:\wwwroot\abb /css/web/coach_join.css " failed (123: The filename CreateFile() "D:\wwwroot\hj_app es/css/web/coach_join.css" failed (123: The filename, directory name, or volume label syntax is incorrect), client: 127.0.0.1, server: ares.haojian.dev, request: "GET /css/web/coach_join.css HTTP/1.1", host: "ares.test .dev"

 

Solution:

Is the problem of backslashes

Just change root d:\wwwroot\a\bb to d:/wwwroot/a/bb