nginx-lua-ds-proxy

HTTP代理服务器
授权协议 Apache
开发语言 Lua
所属分类 服务器软件、 代理服务器软件
软件类型 开源软件
地区 国产
投 递 者 孔鸿哲
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

nginx-lua-ds-proxy 是一个HTTP代理服务器,基于 liseen/lua-resty-http

将代码放在位于nginx根目录下的lua/ds_proxy/下

在nginx.conf的http段中添加如下配置:

lua_package_path "/u/nginx/lua/ds_proxy/?.lua;;";
lua_need_request_body on;
init_by_lua_file lua/ds_proxy/init.lua;

在nginx.conf的location段中添加如下配置:

location / {
        content_by_lua_file lua/ds_proxy/proxy.lua;
    }
 相关资料
  • nginx-lua-ds-loadbalancer 是一个HTTP负载均衡器,基于liseen/lua-resty-http A http loadbalancer which is based on liseen/lua-resty-http 将代码放在位于nginx根目录下的lua/ds_lb/下 Put the code into the directory lua/ds_lb which

  • 基于nginx和lua的防盗链系统 A Prevent Hotlinking System based on nginx and lua 将代码放在位于nginx根目录下的lua/ds_hotlink/下 Put the code into the directory lua/ds_hotlink which is located in the root directory of the ngin

  • nginx-lua-ds-waf 是基于 Nginx 和 Lua 的 WAF 系统 将代码放在位于nginx根目录下的lua/ds_waf/下 在nginx.conf的http段中添加如下配置: lua_package_path "/u/nginx/lua/ds_waf/?.lua;;";init_by_lua_file lua/ds_waf/init.lua;access_by_lua_file

  • 本文向大家介绍使用nginx设置代理服务器,包括了使用nginx设置代理服务器的使用技巧和注意事项,需要的朋友参考一下 nginx可以利用其反向代理的功能来进行负载均衡的实现,同时也可以使用其正向代理的功能设置代理服务器,比如在内网的环境中,在可以连接外网的机器上运行nginx作为代理服务器,其他机器通过设定此台机器的IP和port即可通过其连接上网,本文使用nginx官方镜像,通过如下步骤即可简

  • 我只是将nginx设置为直接代理到tomcat应用服务器的网络服务器。当用户连接到我的网站时,Nginx应该将请求重定向到运行tomcat应用服务器的端口8080。 我正在运行Redhat7的AmazonEC2实例上执行所有操作。 到目前为止,我得到的是: 我在连接上游客户端时遇到的错误是(13:权限被拒绝) 这肯定是一个用户访问问题,但似乎无法解决。nginx似乎无法重定向到端口8080。 另外

  • 我有一个Nginx服务器托管一个web应用程序,当直接访问时工作正常。其配置如下 现在我必须从另一个Nginx服务器上服务这个应用程序,所以我设置了如下所示的反向代理 当我从server2访问应用程序时,我会得到如下错误,例如,当我访问HTTP:server2.com/app/css/app.css时 [error]6601#0:*1 open()“/data/www/app/css/app.cs