[nginx]empty gif

Sergey Brester serg.brester at sebres.de
Thu Jul 19 08:51:19 UTC 2018


 

So you want something like?
 location = /healthcheck.gif {
 empty_gif;
 }
And it does not work?

1. if you've installed nginx via distribution and your nginx version is
larger as 1.9 (which supports dynamic modules), you can just install the
modules via yum. If not, you should use nginx-extra package or compile
nginx with modules you needed (or install from other repository).
2. to load module use load_module [2] directive. to list what it has
statically, use "nginx -V"

But IMHO for the simple health check would be enough:

 location = /healthcheck {
 default_type text/plain;
 return 200 "OK";
 }

Regards,

sebres.

Am 19.07.2018 10:24, schrieb 桐山 健太郎: 

> Hello, 
> 
> I have installed the nginx by making yum repository to the RHEL 7.4 server on EC2(AWS) and the architecture is like below. 
> 
> CloudFrontàWAFàELB(ALB)àEC2 Nginx server(as a Reverse proxy)àELB(ALB)àgoes to 2 different backend web server A and B. 
> 
> Also, I have configured the conf files as two conf. file other than nginx.conf. 
> 
> The above two conf. file is named RP.conf and ALBHealthcheck.conf and placed those under /etc/nginx/ directory, so that nginx conf. could load those two conf. files. (include /etc/nginx/conf.d/*.conf) 
> 
> As for the ELB health check I would like to use the empty gif, however I couldn't find the default module 'ngx_http_empty_gif_module" is
> on the system. 
> 
> I have checked the "/usr/lib64/nginx/modules/", but shows there is nothing in it. 
> 
> 1. Do I have to configure the module one by one? Or nginx has the default module? 
> 
> 2. How can I define the list of module for nginx? What command can list all the module with nginx? 
> 
> My goal is to succeed the health check for ELB with an path of "/healthcheck.html" 
> 
> Regards 
> 
> Kentaro 
> 
> _______________________________________________
> nginx-devel mailing list
> nginx-devel at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel [1]
 

Links:
------
[1] http://mailman.nginx.org/mailman/listinfo/nginx-devel
[2] http://nginx.org/en/docs/ngx_core_module.html#load_module
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20180719/3a94c9ec/attachment.html>


More information about the nginx-devel mailing list