Quick question on NGINX cache

2020-05-22 Thread Alex Evonosky
This should be pretty simple as I really cannot find a good answer on: Running Wordpress with the default permalinks (?page_id=xxx) On NGINX conf, I tried: location / { try_files $uri $uri/ /$args /index.php?$args; } And the main page caches OK, but any page the resides on the "?page_id" is no

RE: nginx 1.18.0 does not reload on ubuntu 18.04

2020-05-22 Thread Zach Mitchell
Finally figured it out. I enabled debug mode on the error log. It turns out setting the worker_rlimit_nofile in the nginx.conf was not working. On nginx startup it would say “getrlimit(RLIMIT_NOFILE): 1024:4096". I had already checked the security limits and they were set… I confirmed that the w

RE: nginx 1.18.0 does not reload on ubuntu 18.04

2020-05-22 Thread Zach Mitchell
I’ve also tried that “ExecReload=/bin/kill -s HUP $MAINPID” which doesn’t work either. I’m testing by adding a new location rule and then reloading and it never gets picked up, I have to restart the nginx process and then it finally gets the new config. Zach From: nginx On Behalf Of Moshe Ka

Re: nginx 1.18.0 does not reload on ubuntu 18.04

2020-05-22 Thread Moshe Katz
I installed nginx on Ubuntu 18.04 from the nginx official repository, and the provided systemd service file is much simpler than yours. It looks like this: ``` [Unit] Description=nginx - high performance web server Documentation=http://nginx.org/en/docs/ After=network-online.target remote-fs.targe

nginx 1.18.0 does not reload on ubuntu 18.04

2020-05-22 Thread Zach Mitchell
I'm using a nginx 1.18.0 and 1.16.1 and when i perform a systemctl restart nginx, it does not actually reload the configs. nginx -s reload does not work either. Am i missing a configure flag that allows this to work properly? Here is my nginx -V built by gcc 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu

Re: How to use dynamic IP in resolver directive when NGINX installed on Multi Nodes Openshift cluster

2020-05-22 Thread Tyler_durden_83
Anyone has found a way to resolve this? Seems like a pretty big deal to me, it completely breaks porting of microservices to Openshift... Posted at Nginx Forum: https://forum.nginx.org/read.php?2,281239,288095#msg-288095 ___ nginx mailing list nginx@ng