phpstudy 用nginx,报500,错误日志:CreateFile

查看nginx 错误日志:

 GetFileAttributesEx() "D:\linuxdir\php	est" failed (123: The filename, directory name, or volume label syntax is incorrect), client: 127.0.0.1, server: test.test, request: "GET / HTTP/1.1", host: "test.test"
2019/03/04 15:59:15 [crit] 3860#3096: *22 CreateFile() "D:\linuxdir\php	est/favicon.ico" failed (123: The filename, directory name, or volume label syntax is incorrect), client: 127.0.0.1, server: test.test, request: "GET /favicon.ico HTTP/1.1", host: "test.test", referrer: "http://test.test/"

解决方案:

打开:vhosts.conf

phpstudy 用nginx,报500,错误日志:CreateFile_第1张图片

在项目目录前面 添加 \解决

再次访问,500错误不存在了,可以正常访问了,所以,在ngnix配置文件里要注意不要有转义符。

你可能感兴趣的:(nginx)