LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Restarting Apache Virtual Hosts Individually (https://www.linuxquestions.org/questions/linux-software-2/restarting-apache-virtual-hosts-individually-312254/)

libsys 04-11-2005 11:45 PM

Restarting Apache Virtual Hosts Individually
 
Is it possible to somehow restart a virtual host in Apache separately from the other hosts? For example, if we have a virtual host with a script that is causing the httpd process to hang, or run slowly, is it possible to just reject requests for pages under that virtual host? I suppose we could stop the server, uncomment the virtual host configuration from httpd.conf, and restart the server, but that's a pretty messy way of doing it, IMHO.

I'm not a code guru, but I'm guessing this is probably not possible as I believe all virtual hosts run under the same httpd process. However, it would be great to know that if one of our sites is playing up, we can just run a command to stop serving pages from it, while still allowing users to access the other sites that are hosted on this web server.

Any advice would be greatly appreciated!

Thanks,
Guy

linuxxed 04-12-2005 04:46 AM

I don;t think you can get around that httpd.conf edit.

service httpd reload (if using Fedora/redhat)


All times are GMT -5. The time now is 12:58 PM.