SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    May 2001
    Location
    T.O., Canada
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    .htaccess question - Timeout and LimitRequestBody directives

    I notice that in my webserver's httpd.conf file, Timeout is set to 300 (seconds). Now I cannot edit httpd.conf since I'm on a shared server, so what directive can I add to .htaccess that changes the default 300 seconds to something like 60 seconds?

    Also what about the directive LimitRequestBody? Can I similarly add it to .htaccess? If so how?

  2. #2
    SitePoint Enthusiast
    Join Date
    May 2001
    Location
    T.O., Canada
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok I just found out TimeOut cannot be used in .htaccess:

    http://httpd.apache.org/docs/mod/core.html#timeout

    But LimitRequestBody can:

    http://httpd.apache.org/docs/mod/cor...mitrequestbody

  3. #3
    SitePoint Enthusiast
    Join Date
    May 2001
    Location
    T.O., Canada
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I just added a line in .htaccess:

    LimitRequestBody 102400

    to limit HTTP transfer message body to 100Kb. So far it seems to work okay.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •