Readers like you help support MUO. When you make a purchase using links on our site, we may earn an affiliate commission. Read More.
I am using Centos Linux and configured Apache for multiple virtual host. I have more then 50 websites running on a single Apache server. Now I need to add new virtual host but after changes i have to restart Apache for change affect and that will kill lots of client connections and that i don't want.
Please tell me any method that works without restarting Apache and brings the new virtual host online.
2013-06-10 05:53:24
Thanks a lot for your reply... This commands works very well...
2013-06-08 07:37:32
You want to use 'apachectl -k graceful' to do your restart. This will close all children not currently serving requests and restarts them. It also advises all children currently serving requests to exit and restart after the current request has completed. Requests that arrive while the child processes are restarting are queued up by the operating system and will be served after the child processes have restarted. Your clients should not even realize a restart has happened. This process also does not reset your statistics in order to minimize the time required for the restart.