failed (123: The filename, directory name, or volume label syntax is incorrect)

react项目打包部署到nginx(win版)上面,访问报异常

failed (123: The filename, directory name, or volume label syntax is incorrect)

2020/06/05 11:08:12 [crit] 1100#11940: *25 GetFileAttributesEx() "D:\studyPath eactStudy\myapp-antd\dist" failed (123: The filename, directory name, or volume label syntax is incorrect), client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", host: "localhost:8001"
2020/06/05 11:08:12 [crit] 1100#11940: *26 CreateFile() "D:\studyPath eactStudy\myapp-antd\dist/favicon.ico" failed (123: The filename, directory name, or volume label syntax is incorrect), client: 127.0.0.1, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "localhost:8001", referrer: "http://localhost:8001/"
2020/06/05 11:08:13 [crit] 1100#11940: *27 GetFileAttributesEx() "D:\studyPath

解决办法:

将\改为\\

修改完成后重启

修改前配置

failed (123: The filename, directory name, or volume label syntax is incorrect)

修改后配置

failed (123: The filename, directory name, or volume label syntax is incorrect)

failed (123: The filename, directory name, or volume label syntax is incorrect)