Welcome! Log In Create A New Profile

Advanced

Re: How to run a shell script on every request?

August 18, 2023 09:40PM
Can you explain why? I would never tie a script to a request. I post
process logs all of the time. If it needs to be in the application, don't
force it into Nginx.

Strong statement, but would love to hear why?

On Fri, Aug 18, 2023 at 9:47 AM Kaushal Shriyan <kaushalshriyan@gmail.com>
wrote:

> Hi,
>
> I am running nginx version: nginx/1.24.0 on CentOS Linux release 7.9.2009
> (Core)
>
> # nginx -v
> nginx version: nginx/1.24.0
> # cat /etc/redhat-release
> CentOS Linux release 7.9.2009 (Core)
> #
>
> I want to run a shell script every time my nginx server receives any HTTP
> request. Any simple ways to do this?
>
> Please guide me. Thanks in Advance.
>
> Best Regards,
>
> Kaushal
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> https://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

How to run a shell script on every request?

kaushalshriyan August 18, 2023 09:48AM

Re: How to run a shell script on every request?

jeffdyke August 18, 2023 09:40PM

Re: How to run a shell script on every request?

J Carter August 27, 2023 03:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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