windows 10 BashOnWindows ERR_INCOMPLETE_CHUNKED_ENCODING

简介: 为了bash on Windows 而装了windows 10 。但在配置LNMP环境的时候出现了问题。状况静态网页加载没有问题 但是访问php却会出现keeps waiting for a request finish最终游览器报net::ERR_INCOMPLETE_CHUNKED_ENCODING错误的情况。

为了bash on Windows 而装了windows 10 。但在配置LNMP环境的时候出现了问题。

状况

静态网页加载没有问题
但是访问php却会出现keeps waiting for a request finish最终游览器报net::ERR_INCOMPLETE_CHUNKED_ENCODING错误的情况。
更改了一堆参数无效,最后还是在官方的github上找到解决方法。

解决

nginx.conf

http {
    ...
    fastcgi_buffering off;
    ...
}

重启nginx与php-fpm即可解决。

参考

https://github.com/Microsoft/BashOnWindows/issues/1851#issuecomment-294299975

目录
相关文章
|
3月前
|
XML 移动开发 Unix
open(file, mode=‘r‘, buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=No
open(file, mode=‘r‘, buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=No
|
4月前
|
Linux Windows
【已解决】Error: error:0308010C:digital envelope routines::unsupported
【已解决】Error: error:0308010C:digital envelope routines::unsupported
127 0
|
5月前
|
算法 JavaScript
解决Error: error:0308010C:digital envelope routines::unsupported最快速方案
解决Error: error:0308010C:digital envelope routines::unsupported最快速方案
242 0
|
Windows
UE INI File Operation [ Read / Write ] Plug-in description
UE INI File Operation [ Read / Write ] Plug-in description
65 0
|
Linux
LINUX打印机报错:ipp error(1034, client-error-document-format-not-supported)
LINUX打印机报错:ipp error(1034, client-error-document-format-not-supported)
3324 0
LINUX打印机报错:ipp error(1034, client-error-document-format-not-supported)
成功解决 SyntaxError: Non-UTF-8 code starting with \xc0 in file but no encoding declared; see http://p
成功解决 SyntaxError: Non-UTF-8 code starting with \xc0 in file but no encoding declared; see http://p
成功解决 SyntaxError: Non-UTF-8 code starting with \xc0 in file but no encoding declared; see http://p
file encode - /UI2/CL_HTTP_FILE_ENCODE
Created by Wang, Jerry, last modified on Mar 24, 2015
118 0
file encode - /UI2/CL_HTTP_FILE_ENCODE
|
Windows
Windows Live Writer 配置报407 Proxy Authentication Required错误
在Windows 7 专业版上面安装Windows Live Writer后(版本号:14.0.8117.416),配置博客服务过程中报错(如下图所示)       错误信息为:407 Proxy Authentication Required(The ISA Server requires authorization to fullfill the request.
1178 0