+ -
当前位置:首页 → 问答吧 → Apache 2.2.6二级域名的配置方法?

Apache 2.2.6二级域名的配置方法?

时间:2010-08-26

来源:互联网

我的Apache上可以运行php和jsp程序了,也可以配置多个域名,但是无法配置二级域名,以下是我的配置方法,但是不能用。大家是怎么配置的?请详细的说下方法,谢谢!
XML code

<VirtualHost localhost>
ServerAdmin localhost
DocumentRoot "D:/workspace/cqwle/WebRoot"
ServerName cqwle.com
DirectoryIndex index.html index.htm index.jsp
ErrorLog logs/shsc-error_log.txt
CustomLog logs/shsc-access_log.txt common
JkMount /*.html ajp13
JkMount /*.asp ajp13
JkMount /servlet/* ajp13
JkMount /*.jsp ajp13
JkMount /*.action ajp13
</VirtualHost>


<VirtualHost *:80>
  ServerAdmin [email protected]
  DocumentRoot "D:/workspace/cqwle/WebRoot/wap"
  ServerName wap.cqwle.com
  ServerAlias wap.cqwle.com
  DirectoryIndex index.htm index.jsp
  ErrorLog logs/shsc-error_log.txt
  CustomLog logs/shsc-access_log.txt common
</VirtualHost> 


作者: songfuqiang   发布时间: 2010-08-26

怎么回事啊,没有回答!描述得不清楚吗?

作者: songfuqiang   发布时间: 2010-08-27