3-unit9 apache

  


ServerRoot “/etc/httpd",,,,,,,,,用于指定Apache的运行目录   Listen  80,,,,,,,,,,,,,监听端口   User  apache ,,,,,,,,,,,,运行apache程序的用户和组   apache Group    ServerAdmin  root@localhost ,,,,,,,,管理员邮箱   DocumentRoot “/var/www/html",,,,,,,,,网页文件的存放目录   & lt; Directory “/var/www/html"祝辞,& lt; Directory>,,,,,,,,语句块自定义目录权限   Require  all 理所当然   & lt;/Directory>   ErrorLog “日志/error_log",,,,,,,,,错误日志存放位置   AddDefaultCharset  UTF-8 ,,,,,,,,默认支持的语言   IncludeOptional  conf.d/* .conf ,,,,,,,,加载其它配置文件   DirectoryIndex  index.html ,,,,默认主页名称


 3-unit9 apache

 3-unit9 apache  3-unit9 apache

 3-unit9 apache

 3-unit9 apache

 3-unit9 apache

164,,,,DirectoryIndex  westos.html , index.html ,,,,, # #   默认主页名称


 3-unit9 apache  3-unit9 apache

120,DocumentRoot “westos/www/html",,,,,,,,, # #网页文件的存放目录   121年,& lt; Directory “westos/www/html"在,,,,,,,,# #语句块自定义目录权限   122,,,,,,Require  all 理所当然   123年,& lt;/Directory>


 3-unit9 apache

 3-unit9 apache

& lt; Directory “/var/www/html/admin"祝辞,,,# #允许所有人访问管理目录但拒绝62主机   ,,,Order 允许,拒绝   ,,Allow 得到所有   ,,,Deny 得到172.25.254.62   & lt;/Directory>

 3-unit9 apache

& lt; Directory “/var/www/html/admin"祝辞,,,# #只允许62主机访问管理目录   ,,,Order 否认,Allow ,,,,,   ,,,Allow 得到172.25.254.62   ,,Deny 得到所有   & lt;/Directory>


 3-unit9 apache  3-unit9 apache

 3-unit9 apache

& lt; Directory “/var/www/html/admin"比;   ,,,,,,,AuthUserFile/etc/httpd/accessuser ,,, # #用户认证文件   ,,,,,,,AuthName “Please  input  yourname 以及password  ! !,,, # #用户认证提示信息   ,,,,,,,AuthType  basic ,,, # #认证类型   ,,,,,,,Require  valid-user ,,, # #认证用户,认证文件中所有的用户都可以通过   ,,,,,或,,(Require  user 管理),,# #只允许认证文件中管理用的户访问,二写一   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null

3-unit9 apache