Custom MaxRequestLen (fcgid) for one site

Discussion in 'ISPConfig 3 Priority Support' started by niux, Aug 8, 2014.

  1. niux

    niux New Member

    Is posible to set MaxRequestLen for one site?

    I tried to set "FcgidMaxRequestLen = 41943040" in the "options" section for that domain but it still fails (apache error log):

    mod_fcgid: HTTP request length 15730345 (so far) exceeds MaxRequestLen (15728640

    Any help will be appreciated...

    By now I set:

    hosting1:# cat /etc/apache2/mods-enabled/fcgid.conf
    <IfModule mod_fcgid.c>
    AddHandler fcgid-script .fcgi
    FcgidConnectTimeout 20
    MaxRequestLen 40000000
    </IfModule>

    But it apply to the whole server and I don't want that...
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    According to apachedocumentation it should work to add this in the apache directives field in ispconfig as it can be set in vhost context:

    http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html

    Did you wait at least 1 minute so that the config was written to disk?
    Do you have any files ending with .err in the apache sites-available directory for that website?

    you can also try to use:

    FcgidMaxRequestLen 40000000

    as thats the name of the variable that is used by latest apache versions.
     
  3. niux

    niux New Member


    My mistake....

    I was setting the "FcgidMaxRequestLen 40000000" value in the "Custom php.ini settings" section...

    After your comments I figure out that the correct place is in "Apache Directives".

    Thanks a lot!
     

Share This Page