首页 > Web开发 > 详细

linux apache服务器配置虚拟主机

时间:2015-11-07 06:46:30      阅读:236      评论:0      收藏:0      [点我收藏+]

楼主用的是阿里云


配置虚拟主机需要在 /alidata/vhosts/default.conf文件中加以下内容

<VirtualHost *:80>
	DocumentRoot /alidata/www/default/baby
	ServerName www.nixiaofeng.xyz
	ServerAlias www.nixiaofeng.xyz
	<Directory "/alidata/www/default/baby">
	    Options Indexes FollowSymLinks
	    AllowOverride all
	    Order allow,deny
	    Allow from all
	</Directory>
	ErrorLog "/alidata/log/httpd/phpwind-error.log"
	CustomLog "/alidata/log/httpd/phpwind.log" common
</VirtualHost>


linux apache服务器配置虚拟主机

原文:http://chenxiaolong.blog.51cto.com/8786841/1710419

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!