Welcome! Log In Create A New Profile

Advanced

the http output chain is empty bug (nginx lua module)

June 06, 2014 05:16AM
nginx >= 1.5.7
nginx-lua-module >= 0.9.8 (possibly older version)
CentOS 6

# ./sbin/nginx -V
nginx version: nginx/1.5.7
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC)
configure arguments: --add-module=../lua-nginx-module

Config file

user nginx;
worker_processes 1;

error_log /var/log/nginx/nginx-error.log error;

events {
use epoll;
}

http {
gzip on;

server {
listen 80;
root /usr/local/nginx/html;

location = /empty/ {
empty_gif;
}

location = /include/ {
content_by_lua '
ngx.location.capture("/empty/")
ngx.location.capture("/empty/")
';
}

location = /ssi.html {
ssi on;
}
}
}


Content of /usr/local/nginx/html/ssi.html
HEADER
<!--#include virtual="/include/" wait="yes" -->


Or request http://localhost/ssi.html (with header Accept-Encoding: gzip) become blank response (without headers and without body)
And in log
[alert] 20457#0: *1 the http output chain is empty, client: 127.0.0.1, server: , request: "GET /ssi.html HTTP/1.1", subrequest: "/include/"

How I can fix it?
Subject Author Posted

the http output chain is empty bug (nginx lua module)

kirimedia June 06, 2014 05:16AM

Re: the http output chain is empty bug (nginx lua module)

itpp2012 June 06, 2014 06:13AM

Re: the http output chain is empty bug (nginx lua module)

Maxim Dounin June 06, 2014 06:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 303
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready