Skip to main content

Configuring ratelimit module question

Comments

5 comments

  • cPanelMichael
    Hello, Do you want that entry added to all virtual hosts? If so, you'd create the following file and populate it:
    /etc/apache2/conf.d/userdata/350_mod_ratelimit.conf
    Then, run the following command:
    /scripts/rebuildhttpdconf
    Could you let us know what error message you receive when completing these steps? Thank you.
    0
  • WebHostPro
    Great, I'm getting closer now. The error now is: Rebuilding configuration without any local modifications. Failed to generate a syntactically correct Apache configuration. Bad configuration file located at /etc/apache2/conf/httpd.conf.work.3utHn4JX Error: The "/usr/sbin/httpd" Configuration problem detected on line 3 of file /etc/apache2/conf.d/userdata/350_mod_ratelimit.conf: Invalid command 'SetEnv', perhaps misspelled or defined by a module not included in the server configuration --- /etc/apache2/conf.d/userdata/350_mod_ratelimit.conf --- 1 2 3 ===> SetOutputFilter RATE_LIMIT <=== 4 SetEnv rate-limit 512 5 SetEnv rate-initial-burst 625 6 7 --- /etc/apache2/conf.d/userdata/350_mod_ratelimit.conf --- The code I entered is: SetOutputFilter RATE_LIMIT SetEnv rate-limit 512 SetEnv rate-initial-burst 625 Which is suggested from the site tat makes the mod. mod_ratelimit - Apache HTTP Server Version 2.5 Thanks!
    0
  • cPanelMichael
    Configuration problem detected on line 3 of file /etc/apache2/conf.d/userdata/350_mod_ratelimit.conf: Invalid command 'SetEnv', perhaps misspelled or defined by a module not included in the server configuration

    Hello, Check to ensure Mod_Env is installed on this system:
    yum install ea-apache24-mod_env
    Thank you.
    0
  • WebHostPro
    Hole moly, that did it. No errors on Apache reboot. Hopefully this thing will work now. What a great tool!
    0
  • MegasmorF
    Hello Community i try to set up this module to set the limits in my client account for example /home/FOLDERDOMAIN/public_html/targetfolder but i think dont work. So i set that SetOutputFilter RATE_LIMIT SetEnv rate-limit 100 SetEnv rate-initial-burst 200 dont work for me. anybody help?
    0

Please sign in to leave a comment.