3422e 发表于 2015-11-9 09:52:28

linux apache服务器配置虚拟主机

楼主用的是阿里云

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

1
2
3
4
5
6
7
8
9
10
11
12
13
<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>



页: [1]
查看完整版本: linux apache服务器配置虚拟主机