开发者社区> 问答> 正文

apache下 增加网站 这样配置对吗?

<VirtualHost 110.76..*:80>
    ServerAdmin admin@domain
    DocumentRoot /alidata/www/wwwroot /aaa
    ServerName www.aaa.com
    ServerAlias 127.0.0.1
    Alias /mysql_manager /alidata/www/wwwroot/mysql_manager
    ErrorDocument 404 /404.php
    DirectoryIndex index.html index.php index.htm

    <Directory "/alidata/www/wwwroot/ aaa">
         Options +Includes
         AllowOverride None
         Order allow,deny
         Allow from all
    </Directory>
   <Directory "/alidata/www/wwwroot/mysql_manager">
     Options +Includes
     AllowOverride None
     Order allow,deny
     Allow from all
   </Directory>
</VirtualHost>

<VirtualHost 110.76..*::80>
    ServerAdmin admin@domain
    DocumentRoot /alidata/www/wwwroot/ bbb
    ServerName www.bbb.com
    ServerAlias 127.0.0.1
    Alias /mysql_manager /alidata/www/wwwroot/mysql_manager
    ErrorDocument 404 /404.php
    DirectoryIndex index.html index.php index.htm

    <Directory "/alidata/www/wwwroo t/bbb">
         Options +Includes
         AllowOverride None
         Order allow,deny
         Allow from all
    </Directory>
   <Directory "/alidata/www/wwwroot/mysql_manager">
     Options +Includes
     AllowOverride None
     Order allow,deny
     Allow from all
   </Directory>
</VirtualHost>

希望官方给出教程啊!11!!!

展开
收起
liguohui 2011-08-31 00:33:49 9600 0
2 条回答
写回答
取消 提交回答
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Apache Flink技术进阶 立即下载
Apache Spark: Cloud and On-Prem 立即下载
Hybrid Cloud and Apache Spark 立即下载

相关镜像