Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matsumotory/mod_vlimitconn
mod_vlimitconn
https://github.com/matsumotory/mod_vlimitconn
Last synced: about 2 months ago
JSON representation
mod_vlimitconn
- Host: GitHub
- URL: https://github.com/matsumotory/mod_vlimitconn
- Owner: matsumotory
- Created: 2012-04-25T03:10:30.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-04-25T03:22:23.000Z (over 12 years ago)
- Last Synced: 2024-10-18T18:27:51.704Z (3 months ago)
- Size: 93.8 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
/*
// -------------------------------------------------------------------
// mod_vlimitconn 0.04
// Control the number of references from the same IP address to documentroot
// or the number of references to vhosts.
//
// Original code is "mod_limitipconn.c 0.23"
// By David Jao and Niklas Edmundsson
// Copyright (C) 2000-2008
//
// Fixed, Modified And Added By Matsumoto_r
// Date 2010/02/04
// Version 0.04
//
// change log
// 2010/02/04 VlimitConnIP create matsumoto_r 0.01
// 2010/02/08 VlimitConnVhost create matsumoto_r 0.02
// 2010/02/15 vlimitconn_logging() create matsumoto_r 0.03
// 2010/02/16 VLIMITCONN_DEBUG_SYSLOG() create matsumoto_r 0.04
//
// -------------------------------------------------------------------// -------------------------------------------------------------------
// How To Compile
// [Use DSO]
// apxs -c mod_vlimitconn.c
// cp ./.libs/mod_vlimitconn.so /usr/local/apache2/modules
//
//
// LoadModule vlimitconn_module modules/mod_vlimitconn.so
//
// -------------------------------------------------------------------// -------------------------------------------------------------------
// How To Use
//
// log file: /tmp/mod_vlimitconn.log
// or #define VLIMITCONN_LOG_FILE "/tmp/mod_vlimitconn.log"
// #define VLIMITCONN_LOG_FLAG_FILE "/tmp/VLIMITCONN_LOG"
// #define VLIMITCONN_DEBUG_FLAG_FILE "/tmp/VLIMITCONN_DEBUG"
//
// if touch /tmp/VLIMITCONN_LOG, vlimitconn log into /tmp/mod_vlimitconn.log.
// if touch /tmp/VLIMITCONN_DEBUG, vlimitconn debug log into syslog.
//
//
// - need to load mod_status
// LoadModule status_module modules/mod_status.so
// ExtendedStatus On
//
//
// ExtendedStatus On -> for mod_status
//
// VlimitConnIP (RealPath of DocumentRoot)
//
//
// VlimitConnIP 10
//
//
// or
//
// VlimitConnIP 10 /www/hoge/huga/001
//
// or
//
// write /www/hoge/huga/001/.htaccess
// VlimitConnIP 10
//
//
// VlimitConnVhost (RealPath of DocumentRoot)
//
// VlimitConnVhost 10 /www/hoge/huga/001
//
// or
//
// write /www/hoge/huga/001/.htaccess
// VlimitConnVhost 10
// -------------------------------------------------------------------
*/