Re: nginx returns html instead of json response

2022-12-01 Thread Francis Daly
On Tue, Nov 29, 2022 at 09:58:20PM +0530, Kaushal Shriyan wrote: Hi there, > I have a follow up question related to the below error which appears in > html instead of JSON format when I hit rest api calls > http://mydomain.com/apis in case of when the MySQL Database service is down > as part of t

Re: How can I redirect a request via Another External proxy

2022-12-01 Thread Francis Daly
On Fri, Nov 25, 2022 at 01:41:37PM +0530, Aakarshit Agarwal wrote: Hi there, > Inside a private network, I want to redirect a request via another External > proxy. "Stock" nginx does not talk to a proxy server. If you want to talk to/through a proxy server, you will want something other than ng

Re: Use nginx to return a scraped copy of another site

2022-12-01 Thread Francis Daly
On Thu, Nov 10, 2022 at 08:50:14PM +0800, Tony Mobily wrote: Hi there, > I want to run b.com as a duplicate of a.com, with nginx acting as a proxy. > The contents would be identical; however, I would apply some minor > modifications to the HTML. > Is this possible with nginx? Is there an example

Re: Restarting service takes too much time

2022-12-01 Thread Maxim Dounin
Hello! On Thu, Dec 01, 2022 at 12:40:08AM -0300, Gus Flowers Starkiller wrote: > Hi, please could anyone tell me why the nginx service takes too much time > to restart? As we know, after some change with nginx the service must be > restarted, I do this with "nginx -s reload" or "systemctl restart