考试首页 | 考试用书 | 培训课程 | 模拟考场 | 考试论坛  
  当前位置:Linux认证 > 红帽认证 > 红帽认证辅导 > 文章内容
  

RHCE7认证学习笔记:Apache配置与管理

来源:Linux社区 [ 2016年2月4日 ] 【

二、配置虚拟主机

    1、基于主机名

 
      #ServerAdmin webmaster@dummy-host.example.com
      DocumentRoot /var/www/html/linuxidc
      ServerName www.linuxidc.com
      ServerAlias www1.linuxidc.com
    # ErrorLog "/var/log/httpd/dummy-host.example.com-error_log"
    # CustomLog "/var/log/httpd/dummy-host.example.com-access_log" common
 

    2、基于IP地址
12345678 
      #ServerAdmin webmaster@dummy-host.example.com
      DocumentRoot /var/www/html/linuxidc
      ServerName www.linuxidc.com
      ServerAlias www1.linuxidc.com
    # ErrorLog "/var/log/httpd/dummy-host.example.com-error_log"
    # CustomLog "/var/log/httpd/dummy-host.example.com-access_log" common
 

3、基于端口

本文纠错】【告诉好友】【打印此文】【返回顶部
将考试网添加到收藏夹 | 每次上网自动访问考试网 | 复制本页地址,传给QQ/MSN上的好友 | 申请链接 | 意见留言 TOP
关于本站  网站声明  广告服务  联系方式  站内导航  考试论坛
Copyright © 2007-2013 中华考试网(Examw.com) All Rights Reserved