Active5 years, 6 months ago
I want Nginx to update configuration file without reloading or restarting Nginx. It seem API or anything (http://nginx.com/products/on-the-fly-reconfiguration/).
tshepang6,5441919 gold badges7474 silver badges116116 bronze badges
Auto refresh for expired content? Hi Folks, i´m using Nginx as a proxy for my mobile app - which works pretty fine so far! My main cache has the following config: proxycachepath. Anytime you make a change to a configuration file, you should reload Nginx. You can do this by logging into your server via SSH with your.
user3396381user3396381
1 Answer
On Ubuntu or Debian it's as simple as using the
reload
argument:The official way is to send SIGHUP:
The above command will get the process ID of the nginx master process and send a SIGHUP signal to it.
See the Controlling Nginx documentation for Nginx.
You can also use the Nginx binary:
Brandon WamboldtBrandon Wamboldt11.4k1111 gold badges4747 silver badges8080 bronze badges