Throttling HTTP by Remote IP

From Resin 3.0

Revision as of 21:34, 2 October 2010 by Ferg (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


As a way of protecting your server from denial-of-service (DOS) attacks, Resin lets you limit the number of connections from a single IP address. This capability is available in Resin Professional, and it part of the <http> configuration.

resin.xml for HTTP throttling

<resin xmlns="http://caucho.com/ns/resin">
  <cluster id=""> 
    <resin:import path="${__DIR__}/app-default.xml"/>

    <server id="">

      <http port="80" address="*" throttle="8"/>

    </server>

    <host id="">
       <web-app id="/" root-directory="/var/www/public-html"/>
    </host>
  </cluster>
</resin>
Personal tools