Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



'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


Oh, I thought it was part of upstart for some reason. Thanks for the the clarification.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: