21521《 osT.tean, sweetens x相 )pree or 病们责的工阻①套帮 21m2122 21 2·, 0●·,··A·::白团·:0: Is this ok [y/d/NJ: 2 Apach∈ 8-3,e174,1.x8664,rpm 2Apache Module pd-tools-2.4. 6-67e17 centos. 6. x86-64rp 88 kB httpd-2.4.6-67.e17.centos6.x86_64.rpm mod-evasive-1.10.1-22. e17. x86_64.rpm (5/5): apr-ut1-1.5.2-6,·17,×8664.rpm Total 5.38/s|3.000:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Install Installing:httpd-tools-2.4.6-67.e17.centos6.x86_64 Installing:httpd-2.4.6-67.e17.centos6.x86_64 Installing mod_evasive-1 10 1-22. e17.x86-64 5/5 verifying:httpd-2.4.6-67.e17.centos.6.x86_64 1/5 verifying: apr-ut11-1.5.2-6.·17.×86_64 Verifying:httpd-tools-2.4.6-67.e17.centos.6.x86_64 Installed: mod evasive,x86.640:1.10.1-22,e17 Dependency Installed 1.4,8-3.e174.1 httpd centos. 6 httpd-tools.x86_640:2.4.6-67.e17.centos.6 Complete to suppress this message ive20_module(shared) rootacentosteach 同南中医药大学/际晓龙=
22 2 Apache服务器 2. aPache Module ¤ Apache模块安装后存放位置和模块的引用在 Ubuntu Server和 Centos 中有所区别。 ■在 Ubuntu server中已安装模块存放在/etc/ apache2/mods- availablel目录 中,已启用模块存放在/et/ apache.2/ mods-enabled目录中, Ubuntu Server中模块的后缀名为Joad,且每一个模块对应一个conf文件。 ■Centos中模块存放在/usr/ib64httpd/modules目录中,Centos中模块的 后缀名为so 可南中医药大学/阮晓龙/13938213680/ht/ linuxxg nactcmeaucn/htp/w5 xuewen cn
211酸15211《eO7+ 们曹的工具套的帮 23 2·,·D0●·,·份·A··:白团··②: 2.Apack tarsem: -rod les ca frootacentoszteachmodulesicdusr/1b64httpd/modmes dialup. so nod proxy、 express,s 2Apache Module mod dir. so od.proxy_fcgi.so mod all mod echo. so mod.proxy_ftp.so od asis. so mod evasive.so mod.proxy_scg so od_auth digest.so mod expires. so od _ proxy. mod proxy wstunnelsc mod file cache mod ratelimit od authn dbd infilter.so od reflectorso mod heartbeat.so settimeout od authn socache s mod heartmonitorso nod request. so mod authz core.s mod inc lude. so mod info. so d od.lbmethod bybusyness so mod.setenvifso h thod byrequests so nod_slotmem plainso odlbmethod bytraffic oslo od authz owner.so thod heartbeat mod socache t :0 od authz user. so mod log config.so mod socache uncache, so od buffe mod_ forensic.so mod_ speling.so od cache disk. so nod.logio. so od_status. se od substitute, s od cache socache so mod macro. so od suexec,s mod.cid. so mod_mime magic. s dsystemd.st id so od data. so mod mpm prefork. so od day fs. so nod mpmworker.so mod usertrack so d def late od proxy.connect.so [rootacentos7teach modules] I 可南中医药大学/阮晓龙/
211酸15211《eO7+ 24 2·,·0。·,·份·A·曹::白团·:②: 2.ApachE f Listen: Allows 2Apache Module f change this to Lister specific IP addresses as shown below to B prevent Apache from glooming onto all bound IP addresses 此L1sten12.34.56.78:80 Listen s0 4 Dynamic shared object (Dso) support g To be able to use the functionality of a module which ilt as a Dso you have to place corresponding LoadModule lines at this as aut ion so the astaticallycompiledmodules(thoselistedbyhttpd-15donoyareused i to be loaded here. Example LoadModule foo_ module modules/mod_foo. so Apache配置文件 apache. conf的配置信息 nclude conf modules. d/. conf wishhttpdtorunasadifferentuserorgroupyoumustrun httpdasrootinitiallyanditwillswitch s User/Group: The name (or inumber) of the user/g httpd a It is usually good practice to create a dedicated user and group for runninghttpdaswithmostsystemservices User apache Group apache Main server configuration f The directives in this section set up the values used by the main 同南中医药大学/际晓龙=
25 2 Apache服务器 2. aPache Module Apache模块只与 Apache的版本有关,和操作系统无关。 Apache246中常用的模块,如表4-1所示。 表41 Apache常用使块列表 模块名 功明 是默认安装 mod actions 运行基于MME类型的cG脚本 mod alias 提供从文件系的不网部分到档树映射是 和URL重定向 mod asis 发送自己包含HTP头内在的文件 是 mod auth basic 使用基本认证 mod auth digest使用MD5加算法的用户验证 否 允许使用第三方验证 否 mod authn anon允许匿名用户访问认证的区域 否 mod authn dbd 使用数据库保存用户验证信息 否 mod authn dbm 使用DBM数据文件保存用户验证信息 mod authn default 在未正确配置认证模块的情况下简单拒绝一 切认证信息 是 可南中医药大学/晓龙/1393[ mod_authz groupfile使用pam文件进行组验证