I installed mod_auth_mysql and mod_limitconnip, I notice that there is a logical error when installing both of modules.
I set the maximum number of concurrent connection to 8 on the mod_auth_mysql password protected directory. The problem was mod_auth_mysql is authenticated before mod_limitconnip.
Most if not all of my members are using download manager and they keep attacking the mysql server constantly with 50+ connections.
I am wondering if there is a way I can set so that mod_auth_mysql is authenticate after everything else is done?
How do I set so that mod_auth_mysql only authenticate when there is no forbidden ERROR or other 4XX ERROR?
Thanks in advance,
tscbh
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry, no. Apache controls the order in which modules are called, based on the hook being used and (if two modules use the same hook), the order they appear in the httpd.conf file.
Unfortunately, mod_limitipconn (I think that's the one you're using - I couldn't find anything on mod_limitconnip) use different hooks, and mod_auth_mysql's hook is called first.
This is all done before any error is returned to the user.
Jerry
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I installed mod_auth_mysql and mod_limitconnip, I notice that there is a logical error when installing both of modules.
I set the maximum number of concurrent connection to 8 on the mod_auth_mysql password protected directory. The problem was mod_auth_mysql is authenticated before mod_limitconnip.
Most if not all of my members are using download manager and they keep attacking the mysql server constantly with 50+ connections.
I am wondering if there is a way I can set so that mod_auth_mysql is authenticate after everything else is done?
How do I set so that mod_auth_mysql only authenticate when there is no forbidden ERROR or other 4XX ERROR?
Thanks in advance,
tscbh
Tscbh.
Sorry, no. Apache controls the order in which modules are called, based on the hook being used and (if two modules use the same hook), the order they appear in the httpd.conf file.
Unfortunately, mod_limitipconn (I think that's the one you're using - I couldn't find anything on mod_limitconnip) use different hooks, and mod_auth_mysql's hook is called first.
This is all done before any error is returned to the user.
Jerry