Welcome! Log In Create A New Profile

Advanced

Re: [nginx]empty gif

Sergey Brester
July 19, 2018 04:52AM
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@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
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx]empty gif

桐山 健太郎 464 July 19, 2018 04:26AM

Re: [nginx]empty gif

Sergey Brester 203 July 19, 2018 04:52AM

RE: [nginx]empty gif

桐山 健太郎 240 July 19, 2018 05:06AM

Re: [nginx]empty gif

Valentin V. Bartenev 189 July 19, 2018 08:08AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 155
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