Giter Site home page Giter Site logo

lomox-offical / nginx-openresty-windows Goto Github PK

View Code? Open in Web Editor NEW
416.0 416.0 129.0 128.2 MB

nginx for windows with openresty

Ruby 0.56% Makefile 3.25% CSS 0.01% HTML 2.88% C 79.45% Lua 2.15% C++ 4.17% Shell 1.83% Perl 2.83% Nginx 0.02% Assembly 1.37% XS 0.04% eC 0.01% Emacs Lisp 0.02% Protocol Buffer 0.01% Scheme 0.01% Prolog 0.94% CMake 0.14% Pascal 0.29% SAS 0.01%
nginx openresty win windows

nginx-openresty-windows's People

Contributors

bloodyknight avatar caidongyun avatar flamingo1109 avatar zqzjz0911 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nginx-openresty-windows's Issues

'ngx_http_lua_ffi_semaphore_new': 找不到指定的程序

你好,我在使用(Nginx Openresty For Windows 版本号:1.9.10.1001)时发现报如下错误,请问这个版本是不支持semaphore的吗?

错误: nginx/x\semaphore.lua:64: cannot resolve symbol 'ngx_http_lua_ffi_semaphore_new': 找不到指定的程序。

请问这个要怎么解决?

stack traceback:
coroutine 0:
[C]: in function 'require'
E:\Tmp\nginx/lua/hello.lua:2: in function <E:\Tmp\nginx/lua/hello.lua:1>, client: 127.0.0.1, server: v.duba.com, request: "GET / HTTP/1.1", host: "127.0.0.1"
2016/08/04 09:29:03 [error] 30296#28268: *24 lua entry thread aborted: runtime error: error loading module 'zlib' from file '.\zlib.dll':
找不到指定的程序。

刚找到方法,已经解决了....

local ffi = require "ffi"
local zlib

if ffi.os == "Windows" then
zlib = ffi.load "zlib"
else
zlib = ffi.load "z"
end

How to kill all of the nginx process?

I want to kill all the nginx process, but i can not get it. I tried to use nginx -s stop and nginx -s quit command to do that, but that's all NO effect.

nginx0.5.6至1.12.0,...等多版本存在信息泄漏漏洞 x1

漏洞描述
2017年7月11日,Nginx官方发布最新的安全公告,在Nginx范围过滤器中发现了一个安全问题(CVE-2017-7529),通过精心构造的恶意请求可能会导致整数溢出并且不正确处理范围,从而导致敏感信息泄漏。当使用Nginx标准模块时,如果文件头从缓存返回响应,允许攻击者获取缓存文件头。在某些配置中,缓存文件头可能包含后端服务器IP地址或其他敏感信息。此外,如果使用第三方模块有潜在的可能导致拒绝服务。

影响版本
Nginx 0.5.6-1.12.0,1.13.0-1.13.2

nginx-openresty-windows 最新版本号:1.13.0.1001 还是有这个漏洞,什么时候可以升级到到1.13.2 之后呢?

@zqzjz0911 @caidongyun @BloodyKnight @Flamingo1109
麻烦看下,谢谢

使用-p和-c参数启动时,提示找不到指令 lua_package_path

您好!

我正在Windows 10上使用1.9.101001版的64位程序。如果直接启动则没有问题,但是如果指定-p和-c参数后,则报错“unknown directive "lua_package_path"。
是不是我忽略了那个安装步骤或者启动参数?
望指教。
谢谢

关于C语言dll中的变量共享问题

Hi buddy,
我用nginx+lua+c/c++做数据处理的服务器,希望在内存中做缓存。我将nginx的Worker数量调整为1,理论上讲,应该就是单进程,应当可以从dll中传出缓存指针,并在下次的传入dll中使用。但测试后发现,不可使用,nginx直接重启。
请问哪位知道原因,并给我一个可行的方案?
另外,Windows64位版的服务器不可以将userdata存入全局共享内存,写入马上读取为nil

一些在luajit.exe下正常运作的c的库经常不能运作

这个win版本的openresty非常好用和强大,开发效率和运行效率都不错.  有个问题是经测试,一些第3方的c库在用luajit.exe下直接调用,表现是正常的. 但在openresty下就不对劲了,表现是浏览器访问对应脚本,会不响应直至超时,也没报错。目前观察到的有lfs(luaFileSytem) , lpeg , luacom等。

win64 1.9.7.1002 运行报错

您好,使用win64版openresty出错,麻烦 请帮看下,多谢!
执行lua 脚本出错,提示无法创建文件 报错信息如下 :
[error] 2656#2796: *5345 CreateFile() "C:\ngx_openresty-1.9.7/html/test_lua" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /test_lua HTTP/1.1", host: "localhost"

系统:win10 64位

能否支持nginx_mod_h264_streaming-2.2.7第三方模块?

编译时出现了很多错误,不知道如何去处理呢?
wget http://h264.code-shop.com/download/nginx_mod_h264_streaming-2.2.7.tar.gz
tar -zxvf nginx_mod_h264_streaming-2.2.7.tar.gz
配置如下:
./auto/configure --builddir=objs --prefix="c:/nginx-1.9.7"
--with-cc=cl --with-select_module
--with-cc-opt="-D FD_SETSIZE=4096 -D _NO_MINGW_LFS -D WATCOMC"
--conf-path=conf/nginx.conf --pid-path=logs/nginx.pid
--http-log-path=logs/access.log --error-log-path=logs/error.log
--sbin-path=nginx.exe --http-client-body-temp-path=temp/client_body_temp
--http-proxy-temp-path=temp/proxy_temp
--http-fastcgi-temp-path=temp/fastcgi_temp
--http-uwsgi-temp-path=temp/uwsgi_temp
--http-scgi-temp-path=temp/scgi_temp
--add-module=../nginx_mod_h264_streaming-2.2.7
--with-pcre=../pcre-8.32
--with-zlib=../zlib-1.2.7

错误如下:
image

balancer.set_timeouts()运行出错cannot resolve symbol 'ngx_http_lua_ffi_balancer_set_timeouts

使用的nginx-openresty-windows版本号:1.11.7.1001 ,修改日志显示:ngx-lua-module 模块更新到 0.10.7了

在lua代码中调用balancer.set_timeouts(6,nil,nil),报错,异常信息如下:
[error] 1928#10932: 1 failed to run balancer_by_lua: .\ngx\balancer.lua:139: cannot resolve symbol 'ngx_http_lua_ffi_balancer_set_timeouts': 找不到指定的程序。

同样的代码,使用openresty官网的二进制版本openresty-1.11.2.2-win32.zip ,测试正常,麻烦看下 是不是 模块ngx-lua-module未成功更新?

查看openresty官网,在ngx_lua 0.10.6版本已经增加该接口了
feature: added pure C API for setting upstream request connect/send/read timeouts in balancer_by_lua* on a per session basis. thanks Jianhao Dai for the original patch.

支持 balancer-by-lua?

能否支持 balancer-by-lua 模块,见下面分支

https://github.com/openresty/lua-nginx-module/tree/balancer-by-lua

iocp版怎么配置呢?

events {
use iocp;
worker_connections 1024;
}

采用这样的配置后,页面会一直在等待加载

Nginx never start

Running in windows 10 nginx never start,

C:\nginx> nginx.exe

nginx never is started. No console output and cannot kill it
Try both 32bits and 64bits package.

windows 64位版本的几个疑似bug(稳定性问题)

请问能否尽快帮我解决,已经焦头烂额,谢谢。项目用到一半,又无法改变平台。我的qq:8221776
1)Post json时json大小超过一定尺寸后ngx.req.read_body()和local data = ngx.req.get_body_data()就返回nil,超过100k就一定会有这个问题。已经在配置文件设置client_max_body_size 10m;。日志中出现一行warning
2016/03/24 00:14:04 [warn] 5032#5716: *6 a client request body is buffered to a temporary file c:\App\GisService/temp/client_body_temp/0000000007, client: 127.0.0.1, server: , request: "POST /se/v1/test/12345678 HTTP/1.1", host: "127.0.0.1:8080"
2)lua在分析较大json时崩溃(大概100k左右,2000行),报错
nginx: lua atpanic: Lua VM crashed, reason: unknown reason
2016/03/24 08:58:12 [notice] 4756#8144: exiting
3)前期还发现日志输出太多时,开启代码缓存会直接不稳定,也报
nginx: lua atpanic: Lua VM crashed, reason: unknown reason
4)如果http配置段没有默认的defaulttype,在代码中设置content-type也会崩溃

集成 ceryx 出错

nginx-openresty-windows 1.9.3.1 加入下面插件,报错
https://github.com/sourcelair/ceryx

2015/09/11 14:57:50 [alert] 4844#12732: lua_code_cache is off; this will hurt performance in D:\temp\openresty\ceryxnginx1.9.3.1/conf/nginx.conf:30
2015/09/11 14:57:59 [error] 4844#13492: *1 lua entry thread aborted: runtime error: .\resty\core\var.lua:56: cannot resolve symbol 'ngx_http_lua_ffi_var_get': 找不到指定的程序。

stack traceback:
coroutine 0:
    [C]: in function '__index'
    .\resty\core\var.lua:56: in function '__index'
    D:\temp\openresty\ceryxnginx1.9.3.1/lualib/router.lua:1: in function <D:\temp\openresty\ceryxnginx1.9.3.1/lualib/router.lua:1>, client: 127.0.0.1, server: , request: "GET /test1 HTTP/1.1", host: "127.0.0.1:40080"
2015/09/11 14:57:59 [error] 4844#13492: *2 lua entry thread aborted: runtime error: .\resty\core\var.lua:56: cannot resolve symbol 'ngx_http_lua_ffi_var_get': 找不到指定的程序。

stack traceback:
coroutine 0:
    [C]: in function '__index'
    .\resty\core\var.lua:56: in function '__index'
    D:\temp\openresty\ceryxnginx1.9.3.1/lualib/router.lua:1: in function <D:\temp\openresty\ceryxnginx1.9.3.1/lualib/router.lua:1>, client: 127.0.0.1, server: , request: "GET /favicon.ico HTTP/1.1", host: "127.0.0.1:40080", referrer: "http://127.0.0.1:40080/test1"

我在添加stream-lua-nginx-module模块的时候遇到这样的报错,请问你有遇到过吗?在nmake阶段的时候

../stream_lua/src/ngx_stream_lua_sleep.c(89): error C2039: “uri”: 不是“ngx_
ream_lua_request_s”的成员
e:\nginx\nginx-openresty-windows-master\src\stream_lua\src\ngx_stream_lua_requ
t.h(20): note: 参见“ngx_stream_lua_request_s”的声明
NMAKE : fatal error U1077: “"d:\Program Files (x86)\Microsoft Visual Studio\2
7\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\cl.EXE"”: 返回代码“0x2

"nginx -s quit" can not kill all nginx processes

I test on two computers.

version: 1.9.14.1001 32bit
system: windows xp

and

version: 1.9.14.1001 64bit
system: windows 7

Uncompress Openresty_For_Windows_1.9.14.1001_32or64Bit.zip and run nginx.exe directly. Then run "nginx -s quit" in the same folder. Just one nginx process is closed and the other one is still running.

配置不兼容

nginx: [emerg] invalid lua shared dict size "10m" in e:\nginx/conf/nginx.conf

lua_shared_dict dogs 10m;

最新64 bit 版本

IOCP_1.11.5.1001 32位和64位版,访问postgres模块,nginx.exe会卡死,浏览器一直等待

win7 64位
Openresty_For_Windows_IOCP_1.11.5.1001_32Bit

Openresty_For_Windows_IOCP_1.11.5.1001_32Bit
访问postgres模块:

nginx.conf配置:
http {
upstream database {
postgres_server 127.0.0.1 dbname=test
user=test password=test;
}

server {
    location / {
        postgres_pass   database;
        postgres_query  "SELECT * FROM cats";
    }
}

}

浏览器访问:http://127.0.0.1,浏览器会一直等待响应。 nginx.exe会卡死,或者弹出窗口: nginx.exe已停止工作。

错误日志:
2019/09/06 15:39:38 [alert] 5628#4832: *1 add event 616 CreateIoCompletionPort() failed (87: The parameter is incorrect) while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "postgres://127.0.0.1:5432", host: "127.0.0.1"

2019/09/06 15:39:38 [error] 5628#4832: *1 postgres: failed to add nginx connection while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "postgres://127.0.0.1:5432", host: "127.0.0.1"

==========================================
另外按照教程编译nginx,32位没问题,64位的nginx.exe 一运行就报错:
应用程序无法启动,因为应用程序的并行配置不正确。有关详细信息,请参阅应用程序事件
日志,或使用命令行 sxstrace.exe 工具。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.