Skip to main content

Where is the mod_qos configuration file?

Comments

4 comments

  • cPanelMichael
    Hello :) Try adding the values to the /usr/local/apache/conf/includes/pre_main_global.conf file and rebuilding the Apache configuration file via: /scripts/rebuildhttpdconf
    There is a Mod_QoS example on this document: [url=http://docs.cpanel.net/twiki/bin/view/EasyApache/Apache/SlowlorisAttacks]How To Mitigate Slowloris Attacks Thank you.
    0
  • craigedmonds
    [quote="cPanelMichael, post: 1576591">Hello :) Try adding the values to the /usr/local/apache/conf/includes/pre_main_global.conf file and rebuilding the Apache configuration file via: /scripts/rebuildhttpdconf
    There is a Mod_QoS example on this document: [url=http://docs.cpanel.net/twiki/bin/view/EasyApache/Apache/SlowlorisAttacks]How To Mitigate Slowloris Attacks Thank you.
    AHA, yes thats very useful. Going to try it now. [COLOR="silver">- - - Updated - - - Okay, sorry for my ignorance. I do the following? 1. open up /usr/local/apache/conf/includes/pre_main_global.conf (i did this and the file was empty) 2. add these lines: RequestReadTimeout header=20-40,MinRate=500 body=20,MinRate=500 3. run: /scripts/rebuildhttpdconf I also ran /scripts/restartsrv_apache. No change though, ip's still hitting the server a million miles an hour.
    0
  • cPanelMichael
    The document I provided was not intended to provide a solution for an attack on your server. It was simply to show you how to add custom Mod_QoS rules to your Apache configuration. Discussion of the attack you have reported is occurring in your other open thread. Thank you.
    0
  • postcd
    Little bit late, but i think this is helpfull information and was missing.
    I would like to be able to edit the mod_qos config file and tweak it a bit but cant find it.

    i did not found any "qos" named config file in /usr/local/apache nor in /etc i think smartest way to configure it is to go to: WHM " Service Configuration " Apache Configuration " Include Editor >> "Pre VirtualHost Include" >> "All versions" and there paste that code ...mod qos config lines from
    0

Please sign in to leave a comment.