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
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
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
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
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
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