Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: modsecurity: updating blacklist without restarting Apache? |
|
Author |
|
CrisLander
Joined: 19 Jan 2010 Posts: 2
|
Posted: Tue 19 Jan '10 17:58 Post subject: modsecurity: updating blacklist without restarting Apache? |
|
|
Hi, I have a question: I recently installed modsecurity and created a few rules, one of them being blocking access to a blacklist that I keep in a separate file. It all works perfectly, but every time I change something in the blacklist file I need to restart Apache so that the new blacklist is used.
Is there any way to be able to load the new blacklist without having to restart Apache? I was hoping that by keeping the blacklist in a separate file and not in the modsecurity config files I would not only be able to keep things clean, but I would also be able to update the blacklist as needed in real time. I'm using a simple IP comparison with @pmFromFile, and if possible, I wouldn't want to restart the server every time I update the file..
Thanks! |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 20 Jan '10 14:34 Post subject: |
|
|
AFAIK you have to restart the server.
What is your issue with restarting apache? |
|
Back to top |
|
CrisLander
Joined: 19 Jan 2010 Posts: 2
|
Posted: Mon 10 May '10 15:52 Post subject: |
|
|
Awfully late reply, but the problem with restarting is that this is supposed to be a 24/7 server, and it shouldn't be ever down.
But using a soft reboot is working so far, as threads that are busy aren't killed and replaced until they have finished. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 10 May '10 19:17 Post subject: |
|
|
reboot? You don't have to reboot windows. Just reload apache with
|
|
Back to top |
|
|
|
|
|
|