Chinaunix首页 | 论坛 | 博客
  • 博客访问: 777041
  • 博文数量: 56
  • 博客积分: 451
  • 博客等级: 下士
  • 技术积分: 1431
  • 用 户 组: 普通用户
  • 注册时间: 2012-01-20 11:14
文章分类

全部博文(56)

文章存档

2013年(35)

2012年(21)

分类: 系统运维

2012-10-18 15:07:17

 1. 打开文件 /etc/httpd/conf/httpd.conf, 搜索 VirtualHost example, 找到代码如下:

# # VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known # server name. 
2.改掉注释,然后根据需要自己修改
 
 ServerAdmin ***@***.com
 DocumentRoot /var/www/drupal
 ServerName www.***.com
 ErrorLog logs/dummy-host.log
 CustomLog logs/dummy-host.log common

3.重启httpd 服务, 执行以下语句.

service httpd restart
阅读(1889) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

xuxiaomei02012-10-19 11:03:39

恩,解决了我的一些问题谢谢~~
北京it培训www.idting.com/ITpeixun/