alcina
August 11, 2013, 3:15pm
1
Hi,
I’m writing a filter module which will output static files according to
information returned by an upstream handler like FastCGI, or Apache.
There is some testing code in header/body filters. I’m launching the
server
merely to see whether my code is invoked. All configuration and cleanup
stuff
seems to be working. But the header/body filters are not called at
all(both
call
ngx_log_error).
Vhost configuration: http://bpaste.net/show/121898/
The module: http://bpaste.net/show/121900/
Please help to figure out what’s wrong with it.
Regards.
–
Ruslan Osmanov
Posted at Nginx Forum:
Hi, I'm writing a filter module which will output static files according to information returned by an upstream handler like FastCGI, or Apache. There is some testing code in header/body filters. I'm launching the server merely to see whether my code...
Hi.
2013/8/11 ruslan_osmanov [email protected]
There is some testing code in header/body filters. I’m launching the
server
merely to see whether my code is invoked. All configuration and cleanup
stuff
seems to be working. But the header/body filters are not called at
all(both
call
ngx_log_error).
Vhost configuration: http://bpaste.net/show/121898/
The module: http://bpaste.net/show/121900/
Please help to figure out what’s wrong with it.
After I built your module with the above config
the header/body filter functions are called in my environment.
Maybe the cause is in config. For example, using HTTP_MODULES instead of
HTTP_FILTER_MODULES.
Posted at Nginx Forum:
Hi, I'm writing a filter module which will output static files according to information returned by an upstream handler like FastCGI, or Apache. There is some testing code in header/body filters. I'm launching the server merely to see whether my code...
Thank you for the reply.
Hmm, maybe I build it different way. I have the following files to
configure, make and install it:
conf.sh:
cd ~/src/nginx
./auto/configure --prefix=/home/ruslan
–with-debug
–conf-path=/home/ruslan/etc/nginx/nginx.conf
–user=ruslan
–group=www
–pid-path=/home/ruslan/var/run/nginx.pid
–lock-path=/home/ruslan/var/run/nginx.lock
–error-log-path=/home/ruslan/var/log/nginx/error.log
–add-module=/home/ruslan/projects/nginx/modules/file_chunks_filter
make.sh
cd ~/src/nginx
make -j7
install.sh
cd ~/src/nginx
make install
So I simply run ./conf.sh ; ./make.sh ; install.sh. Isn’t it right? Or,
should I modify the nginx configuration?
Thanks.
Posted at Nginx Forum:
Hi, I'm writing a filter module which will output static files according to information returned by an upstream handler like FastCGI, or Apache. There is some testing code in header/body filters. I'm launching the server merely to see whether my code...
Oh, sorry, the config
file contains:
ngx_addon_name=ngx_http_file_chunks_filter_module
HTTP_MODULES=“$HTTP_MODULES ngx_http_file_chunks_filter_module”
HTTP_INCS=“$HTTP_INCS /usr/include/libxml2 "
CORE_LIBS=”$CORE_LIBS -lxml2"
NGX_ADDON_SRCS=“$NGX_ADDON_SRCS
$ngx_addon_dir/ngx_http_file_chunks_filter_module.c”
Posted at Nginx Forum:
Hi, I'm writing a filter module which will output static files according to information returned by an upstream handler like FastCGI, or Apache. There is some testing code in header/body filters. I'm launching the server merely to see whether my code...
Yes, indeed, I had to put it into HTTP_FILTER_MODULES.
Thank you!
Posted at Nginx Forum:
Hi, I'm writing a filter module which will output static files according to information returned by an upstream handler like FastCGI, or Apache. There is some testing code in header/body filters. I'm launching the server merely to see whether my code...