有个apache+jboss apache上创建虚拟目录的问题.

下面是httpd.conf

[Copy to clipboard] [ - ]
CODE:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName [url]www.xxxx.cn[/url]
DocumentRoot /site/
ErrorLog logs/www.xxxx.cn-error_log
CustomLog logs/www.xxxx.cn-access_log common
</VirtualHost>

<VirtualHost *:80>
ServerName   mail.xxxx.cn
DocumentRoot /var/www/html/extmail/html
Alias /extmail/cgi/ /var/www/html/extmail/cgi/
Alias /extmail /var/www/html/extmail/html/
Alias /extman/cgi/ /var/www/html/extman/cgi/
Alias /extman /var/www/html/extman/html/
Alias /file/ /var/www/html/file/
SuexecUserGroup postfix postfix
ErrorLog logs/mail.xxxx.cn-error_log
CustomLog logs/mail.xxxx.cn-access_log commo
</VirtualHost>

<Directory /var/www/html/extmail/cgi>
Options +ExecCGI
</Directory>
<Directory /var/www/html/extman/cgi>
Options +ExecCGI
</Directory>

下面是mod_jk2.conf文件

[Copy to clipboard] [ - ]
CODE:
LoadModule jk_module modules/mod_jk.so
JkWorkersFile conf/workers2.properties
JkLogFile logs/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevel info
# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
# JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format
JkRequestLogFormat "%w %V %T"
#apache will serve the static picture.
JkMount /* loadbalancer
#JkUnMount /*.jpg loadbalancer
JkUnMount /*.gif loadbalancer
JkUnMount /*.swf loadbalancer
JkUnMount /*.bmp loadbalancer
JkUnMount /*.png loadbalancer

JkUnMount /*.htm loadbalancer
JkUnMount /*.html loadbalancer

JkUnMount /*.js loadbalancer

JkUnMount /*.cgi loadbalancer

JkUnMount /*.css loadbalancer

JkUnMount /*.exe loadbalancer
JkUnMount /photos/*_*.jpg loadbalancer
JkUnMount /images/*.jpg loadbalancer
JkUnMount /images_index/*.jpg loadbalancer
JkUnMount /template/*.jpg loadbalancer

我在新部署的工程里面新建一个文件,文件名为jboss-web.xml,内容如下:

<jboss-web>

<context-root>/</context-root>

</jboss-web>


然后当我在地址栏里敲 www.xxx.cn 时 马上回变为 www.xxx.cn/manager.faces 来达到省略工程名的目的.

我的问题上是当我 敲 mail.xxx.cn 的时候 他也会马上 变为 mail.xxxx.cn/manager.faces 这就不是我想要的了.

我访问不了我的邮件系统了. 日志里显示如下

[Copy to clipboard] [ - ]
CODE:
[Wed Jun 11 08:14:40 2008] [error] [client 125.33.157.212] File does not exist: /var/www/html/extmail/html/manager.faces

问题应该出在 apapche 和 jboss 整合上吧?请高手指点.非常感谢.大家还想知道什么我随时往上贴.谢谢.