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

目录
相关文章
|
Docker Windows 容器
解决 windows:An attempt was made to access a socket in a way forbidden by its access permissions
解决 windows:An attempt was made to access a socket in a way forbidden by its access permissions
1943 1
解决 windows:An attempt was made to access a socket in a way forbidden by its access permissions
|
2月前
|
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
Error: error:0308010C:digital envelope routines::unsupported
Error: error:0308010C:digital envelope routines::unsupported
|
3月前
[ERROR] Malformed \uxxxx encoding.报错解决
[ERROR] Malformed \uxxxx encoding.报错解决
|
3月前
|
Linux Windows
【已解决】Error: error:0308010C:digital envelope routines::unsupported
【已解决】Error: error:0308010C:digital envelope routines::unsupported
96 0
|
4月前
|
算法 JavaScript
解决Error: error:0308010C:digital envelope routines::unsupported最快速方案
解决Error: error:0308010C:digital envelope routines::unsupported最快速方案
225 0
|
Linux
LINUX打印机报错:ipp error(1034, client-error-document-format-not-supported)
LINUX打印机报错:ipp error(1034, client-error-document-format-not-supported)
3197 0
LINUX打印机报错:ipp error(1034, client-error-document-format-not-supported)
MAC编译:fatal error: ‘endian.h‘ file not found
MAC编译:fatal error: ‘endian.h‘ file not found
131 0
|
开发工具 Android开发 git
Android Studio完美解决 you are about to commit crlf line separators,warning: CRLF will be replaced by LF
Android Studio完美解决 you are about to commit crlf line separators,warning: CRLF will be replaced by LF
1033 1
Android Studio完美解决 you are about to commit crlf line separators,warning: CRLF will be replaced by LF
|
JSON PHP 数据格式
php json_encode JSON_ERROR_UTF8 Malformed UTF-8 characters, possibly incorrectly encoded
php json_encode JSON_ERROR_UTF8 Malformed UTF-8 characters, possibly incorrectly encoded
345 0