logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: modsecurity: updating blacklist without restarting Apache?
Author
CrisLander



Joined: 19 Jan 2010
Posts: 2

PostPosted: Tue 19 Jan '10 17:58    Post subject: modsecurity: updating blacklist without restarting Apache? Reply with quote

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

PostPosted: Wed 20 Jan '10 14:34    Post subject: Reply with quote

AFAIK you have to restart the server.

What is your issue with restarting apache?
Back to top
CrisLander



Joined: 19 Jan 2010
Posts: 2

PostPosted: Mon 10 May '10 15:52    Post subject: Reply with quote

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

PostPosted: Mon 10 May '10 19:17    Post subject: Reply with quote

reboot? You don't have to reboot windows. Just reload apache with

Code:

httpd -k restart
Back to top


Reply to topic   Topic: modsecurity: updating blacklist without restarting Apache? View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules