J 211.69. 35.213-Centos 7-Teach-rootecentos7teache--Xshell 5 (Free for Home/School 文件)乘辑()查(工具①选项卡B)W帮助(H)sh/root 21 ·,國·0··8·A:鹵团,,②”P要加当前,左 2. Apache po/s) adpn-, a k-g ei 8-3,e174.1,x8664.rpm 103kB00:0 2Apache Module (2/5):httpd-tools-2.4.6-67.el7.centos.6.x86_64.rpm (3/5):httpd-2.4.6-67.e17.centos6.x86_64.rpm mod evasive-1.10.1-2 (5/5):apr-uti1-1.5.2-6,e17,x86_64.rpm 92kB00 Total 5.3NB/s|3.0MB Running transaction check Running transaction tes Transaction test succeeded Running transaction Installing:apr-1.4.8-3.e17-4.1.X86_64 Inst Installing:httpd-tools-2.4.6-67.e17.centos.6.x86 httpd-2.4.6-67.el Installin evasive.-1.10.1-22e17,x8664 5/ verifying:httpd-2.4.6-67.e17.centos.6.x86_64 apr-uti1-1.5.2-6,e17,x86_6 verifying apr-14.8-3.e17_4.1.x86_64 verifying:httpd-tools-2.4.6-67.e17.centos.6.x86_64 mod evasive,x86_640:1.10,1-22,e17 Dependency Installed 3.e174.1 1.x86640:1.5.2-6,e17 httpd-tools.x86_640:2.4.6-67.e17.centos.6 AH00558 e server s name, using fe80: 88c3: 6f51: 945e: cfc. Set the ' ServerName directive globally [r。 otlacentos7 teach-]#■ 仅相文本发送到图远项卡 问南中医药大学/阮晓龙/mm22 5sH2 xterm T B0x4040.241会活4 LAP NU
河南中医药大学 / 阮晓龙 / 13938213680 / http://linux.xg.hactcm.edu.cn / http://www.51xueweb.cn 2.Apache服务器 21 2.2Apache Module
22 2 Apache服务器 2.aPache Module ¤ Apache模块安装后存放位置和模块的引用在 Ubuntu Server和 Centos 中有所区别 在 Ubuntu Server中已安装模块存放在/etc/ apache2/ mods-available目录 中,已启用模块存放在/etc/ apache2/mods- enabled目录中, Ubuntu Server中模块的后缀名为Joad,且每一个模块对应一个.conηf文件。 Centos中模块存放在/usr/ib64/httpd/modules目录中CentoS中模块的 后缀名为So 南中医药大学/阮晓龙/13938213680/http://inux.xg.hactcm.edu.cn/http://www.51xueweb.cn
河南中医药大学 / 阮晓龙 / 13938213680 / http://linux.xg.hactcm.edu.cn / http://www.51xueweb.cn 2.Apache服务器 Apache模块安装后存放位置和模块的引用在Ubuntu Server和CentOS 中有所区别。 ◼ 在Ubuntu Server中已安装模块存放在/etc/apache2/mods-available目录 中,已启用模块存放在/etc/apache2/mods-enabled目录中,Ubuntu Server中模块的后缀名为.load,且每一个模块对应一个.conf文件。 ◼ CentOS中模块存放在/usr/lib64/httpd/modules目录中,CentOS中模块的 后缀名为.so。 22 2.2Apache Module
J211.69.35.213-centos7-teaCh-rootecentos7teache/usr/mb64/httpd/modules-xshell5(freeforhoMe/school) 文件)乘辑()查(工具①选项卡(B)囗W秘助(H)sh/root"21169.3521322 23 1211621c0571+ 2 Apache jd acti [root@centos7teach modules]# od_dialup.so mod_proxy_express.so 2Apache Module d dir mod_dumpioso mod_proxy_fdpassso mod allowmethod mod echo. so mod__proxy_ftp.so mod asis. so nv.so mod auth basic. so mod easi ve24.so proxy_scgi 50 mod_auth digest.s mod_expires.so mod_proxy.so mod authn anon. so mod- proxy_wstunnelso mod authn core. so e ca mod ratelimit. so mod authn dbd.so mod filter. so mod reflector. so od authn dbm. so mod headers. so mod authn file. so mod heartbeat. st mod_reqtimeoutso mod authn socache so mod heartmonitor so mod_request. so mod authz core. so mod inc lude. so mod_ authz dbd. so mod authz dbm. so modTbmethod bybusyness so mod_setenvifso mod_authz groupfile. so modlbmethod byrequests so mod-slotmemplainso mod authz host. so modlbmethod bytraffic so mod-slotmemshmse od authz owner. so lbmethod heartbeat se mod authz user. so mod_log_config.so mod socache memcache so mod autoindex. so mod buffer so dlogforensic.so mod_speling.so mod cache disk. so mod_logio. so mod_ status. so mod cache. so od lua. so mod_ cache_ socache so mod _macro. so mod_cgi.so mod_systemd. so mod_cgi.so mod mime.so mod data. so mod_mpm prefork.so mod userdir so mod_dav_ fs. so mod_mpmworker.so mod usertrack so mod day lock. so mod negotiation. so mod version. so mod day. so mod_ proxy- ajp.so mod vhost alias. so mod_watchdog. so [root@centos7teach modu les]#ixy_connect.so d deflate. so 仅将文本发选到图远项卡 问南中医药大学/阮晓龙/mm22 B SSH2 xterm T B0x40 s 37, 30 1 s
河南中医药大学 / 阮晓龙 / 13938213680 / http://linux.xg.hactcm.edu.cn / http://www.51xueweb.cn 2.Apache服务器 23 2.2Apache Module
J211.69.35.213-centos7-teaCh-rootecentos7teache/usr/mb64/httpd/modules-xshell5(freeforhoMe/school) 文件)乘辑()查(工具①选项卡(B)囗W秘助(H)sh/root"21169.3521322 24 ·,國·0··8·A:鹵团,,②”P要加当前,左 1216935213ce057L+ 2.Apache Listen: Allows you to bind Apache to specific IP addresses and /or 2Apache Module direst i vested of the default. See also the virtua Host> change this to Listen on specific IP addresses as shown below to prevent Apache from glomming onto all bound IP addresses # Listen12.34.56.78:80 Listen 80 #f To be able to use the functionality of a module which was built as a Dso you have to place corresponding LoadModule lines at this s location so th directives contained in it are actually available before they are used #staticallycompiledmodules(thoselistedbyhttpd-1)donotneed be loaded h Example LoadModule foo_module modu les/mod_foo. se Apae配置件 apache.conf的配置信息 工 nc lude conf. modules.d/°.conf #Ifyouwishhttpdtorunasadifferentuserorgroupyoumustrun #httpdasrootinitiallyanditwillswitch #User/group:Thename(or#number)oftheuser/grouptorunhttpdas #工t sually good practice to create a dedicated user and group for #runninghttpdaswithmostsystemservices The directives in this section set up the values used by the main 仅相文本发送到图远项卡 问南中医药大学/阮晓龙/mm22 ssH2 xterm T B0x40见40.301会舌4 LAP NUN
河南中医药大学 / 阮晓龙 / 13938213680 / http://linux.xg.hactcm.edu.cn / http://www.51xueweb.cn 2.Apache服务器 24 2.2Apache Module Apache配置文件apache.conf的配置信息
25 2 Apache服务器 2.aPache Module ¤ Apache模块只与 Apache的版本有关,和操作系统无关。 Apache246中常用的模块,如表4-1所示。 表41 Apache常用模列表 模块名 功能说明 是否默认装 mod actions 运行基于MME类型的cG脚本 nod alias 提供从文件系统的不同部分到文档树的映射 和URL重定 mod asis 发送自己包含HTTP头内容的文件 mod auth basic 使用MD5加密算法的用户验证 mod authn alias 许使用第三方验证 mod authn anon 许匿名用户访问认证的区域 是是是是否否否否不 mod authn dbd 使用数据库保存用户验证信息 mod authn dbm n使用DM我交件保存用户验证信息 mod authn default 在未正确配置认证模块的情兄下简单拒绝一 切认证信息 问南中医药大学/阮晓龙/1393 L mod_authz_groupfile使用 planter文件进行组验证
河南中医药大学 / 阮晓龙 / 13938213680 / http://linux.xg.hactcm.edu.cn / http://www.51xueweb.cn 2.Apache服务器 Apache模块只与Apache的版本有关,和操作系统无关。 Apache 2.4.6中常用的模块,如表4-1所示。 25 2.2Apache Module