Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > by-pkgid > 0123b34df348df8229998b8f30591b64 > files > 1

apache-mod_limitipconn-0.23-6mdv2010.1.src.rpm

<IfDefine HAVE_LIMITIPCONN>
    <IfModule mod_status.c>
	<IfModule !mod_limitipconn.c>
	    LoadModule limitipconn_module	extramodules/mod_limitipconn.so
	</IfModule>
    </IfModule>
</IfDefine>

<IfModule mod_status.c>

    ExtendedStatus On

	<IfModule mod_limitipconn.c>

	    # MaxConnPerIP - maximum simultaneous connections per IP address

	    # NoIPLimit - MIME types for which limit checking is disabled

	    # OnlyIPLimit - restrict limit checking to these MIME types only

	    <Location _REPLACE_ME_>
		MaxConnPerIP 1
		NoIPLimit mod_limitipconn-README.txt
	    </Location>

#	    <Location /mp3>
#		MaxConnPerIP 1
#		# In this case, all MIME types other than audio/mpeg and video*
#		# are exempt from the limit check
#		OnlyIPLimit audio/mpeg video
#	    </Location>

	    ErrorDocument 503 \
	    "The server is temporarily unable to service your request \
	    due to maintenance downtime or capacity problems. \
	    Probably you're opening too many connections at the same time. \
	    Please try again later."

    </IfModule>

</IfModule>