3 ms·
You can do per-directory config in nginx with the location block, it's just that you just can't put the config inside the directory itself and have nginx automa
by bluefinity 13y ago
You can do per-directory config in nginx with the location block, it's just that you just can't put the config inside the directory itself and have nginx automatically load it.
You can tell nginx to reload its configuration without restarting the entire server process by running "sudo /etc/init.d/nginx reload", or on ubuntu "sudo service nginx reload".
- twic 13y ago'service' is not just on Ubuntu - i believe it started life on Red Hat, and has now spread everywhere. Including FreeBSD: http://www.freebsd.org/cgi/man.cgi?query=service&sektion=8 http://www.freebsd.org/cgi/man.cgi?query=service&sektion=8
- bluefinity 13y agoOh, I thought it was part of upstart for some reason. Thanks for the the clarification.