070-8260-2526

9 ~ 6

352-0331-1626-83

:ũڸ


ֹ
Ȩ > > ֹ

ȸ 8630
] Ʈ
re: ں Ʈ ϴ ˷ּ.
ideaargo
äô亯54
2005.06.01. 17:30
亯 õϱ

λ

մϴ.
Ʈ Ѵٴ° FTP ϴ° Ͻô°ǰ?
Ʈ ϴ° 𸣰ڽϴ.
ٸ Ʈ ̶ ϸ κ (ġ...) ϴ
ϱ⿡ 뷫 帮ڽϴ.
 
 
ȣ Ʈ ƴٴϴٺ
' Ʈ 500M , Ȥ Ʈ 1000 Ʈ '
̷ ֽϴ.


Ʈ ϴ mod_bandwidth mod_throttle ΰ ַ ̴µ
mod_bandwidth 뿪 ϴ ̸
mod_throttle Ʈ ϴ Դϴ ( װ Ҹ ? Ѥ;; ΰ
и ٸϴ )

1M ¥ ޴´ٰ ϸ
mod_bandwidth ̿ϸ ʴ ӵ ϰ
mod_throttle 1M ٿ ִĸ ϰ ǰ.

mod_bandwidth 1M ٿ ޴ ӵ apache ڰ
ٿ ޴ Ƚ, ٽø ٿε ȵǰ

mod_throttle 1M ٿ޴ ӵ
ٿ޴ Ƚ, ٿε ִٴ Դϴ.

ΰ Բ Ʈ, 뿪 ϰ.


̹ ¿ mod_throttle ⸸ ϰڽϴ.
ġ ġ 丮 /usr/local/apache ϰ մϴ.

켱 mod_throtte.c ٿ޾ ġ Ư 丮 ϴ.

̰ ִ°

http://www.snert.com/Software/mod_throttle/index.shtml

ƮԴϴ.

mod_throttle312.tgz ٿ ֳ׿ ( 2003 10 25 )
ٿ޾ Ǯ µ ߿
mod_throttle.c /usr/local/apache/src/module/extra ϴ.


׸ ġ ٽ ϴµ
Ʒ ɼ մϴ.

[root@myserver /]# cd /usr/local/apache
[root@myserver apache]# ./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libphp4.a --add-module=src/modules/extra/mod_throttle.c


( ⼭ ǥô ٲ ° ϱ
ѱ鼭 ɾ ؼ Էϱ ǥԴϴ )


php ɼ (activate... ) Ʒ Բ ϴ° ɼ ־ϴ.

make ׸ make install մϴ. ( κ Ʒ apache ,PHP ġϱ⸦
Ͻñ ٶϴ )


Ϸ Ǿ ߰ Ǿ Ȯ ϴ.

[root@myserver apache]# /usr/local/apache/bin/httpd -l
Compiled-in modules:
http_core.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_status.c
mod_include.c
mod_autoindex.c
mod_dir.c
mod_cgi.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_access.c
mod_auth.c
mod_setenvif.c
mod_php4.c
mod_throttle.c
suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec


Ʒʿ mod_throttle.c Դϴ.
Դϴ.

ڽϴ.

httpd.conf  ִ ġ ̵մϴ.
( ű⿡ ʿ .. ִ° ϱ )

Ʒ Էմϴ.



ThrottlePolicy none


SetHandler throttle-status
Deny from all // ٸ źϰ
Allow from 123.123.123.123 // Ư ǿ throttle-status Ȯ ϵ



SetHandler throttle-me



Order deny,allow
Deny from all
Allow from all
SetHandler throttle-me




throttle-status Ȯ ִ Ǹ κ(Allow from.. ) Ͻñ ٶϴ.
ƹ ¸ Ȯϰ ϸ ġ ʰ ?
123.123.123.123 ü Ʈ Ȳ ͸ ϵ Դϴ.


virtualhost Ʒ ϴ.


ServerAdmin dream@praise.co.kr
DocumentRoot /home/dream/public_html
ServerName myserver.co.kr
ServerAlias www.myserver.co.kr
Throttle Policy Volume 1024M 1d // 1 1G
ThrottlePolicy Request 1000 1d // Ϸ Ʈ 1000ȸ
ErrorLog /var/log/httpd/error_log
CustomLog /var/log/httpd/access_log common




Ǵ ο throttlepolicy
ġ ϰ

http://IP/throttle-status Ȯ ϸ
뿪 Ȯ

Ư Ʈ Ȯ Ϸ
http://domain/throttle-me Ȯ ϸ ˴ϴ.

-----------------------------------------------------------------------
ڷó : ( http://www.praise.co.kr )
-----------------------------------------------------------------------


ó
http://www.praise.co.kr