码迷,mamicode.com
首页 > Web开发 > 详细

apache基于多端口虚拟主机配置

时间:2015-05-21 10:45:37      阅读:147      评论:0      收藏:0      [点我收藏+]

标签:

1,绑定/etc/hosts

2,在/etc/httpd/conf/httpd.conf 增加

Listen port;

 

3,添加conf.d/目录下的  *.conf 内容实例如下:

<VirtualHost *:81>
        DocumentRoot /var/www/Vhosts/test01
        ServerName test.vshine01.com
        #ServerAlias test.vshine01.com
        ErrorLog "logs/test.vshine01.com-error.log"
        CustomLog "logs/test.vshine01.com-access.log" common
        #DirectoryIndex index.html index.htm index.php
</VirtualHost>

<Directory "/var/www/Vhosts/test01">
        Options FollowSymLinks
        AllowOverride None
        Order allow,deny
        Allow from all
</Directory>

apache基于多端口虚拟主机配置

标签:

原文地址:http://www.cnblogs.com/ruiy/p/4518967.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!