求助:我的APACHE配置哪儿有问题?

林子一 2013-06-14 11:03:27
想实现APACHE虚拟机的配置
有2个域名www.a.xx和bbs.a.xx,输入任何的*.a.xx访问的是www.a.xx(IP地址是192.168.0.30)
www.a.xx ==> /virHost/www/wwwroot ==>JSP映射到tomcat的192.168.0.30:6008
bbs.a.xx ==> /virHost/bbs/wwwroot ==>JSP映射到tomcat的192.168.0.30:7008
*.a.xx ==> 映射到默认主页 www.a.xx
目前我在Linux下tomcat服务器配置正常,APACHE不整合Tomcat,单独无多域名的测试页正常
但是我把通过编译好的mod_jk.so连接Tomcat时就报错了,我是计划这样
*.a.xx ==>通过workers.properties和uriworkermap.properties映射Tomcat
www.a.xx ==>通过workers.properties和wwwworkermap.properties映射Tomcat
bbs.a.xx ==>通过workers.properties和bbsworkermap.properties映射Tomcat
httpd.conf的主要配置文件如下:
我已经加上了以下这句,mod_jk.so我已经编译确定没问题,并在modules文件下有存折
LoadModule jk_module modules/mod_jk.so
在配置文件的末尾我加上
JkWorkersFile /usr/local/apache2/conf/workers.properties
JkMountFile /usr/local/apache2/conf/uriworkermap.properties
JkMount /* wwwtmc
JkLogFile /usr/local/apache2/logs/mod_jk.log
JkLogLevel info
JkLogStampformat "[%a %b %d %H:%M:%S %Y]"
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin www@cxmz.net
ServerName 192.168.0.30
DocumentRoot /virHost/wwwroot
DirectoryIndex index.html index.htm index.jsp index.action
JkMountFile conf/uriworkermap.properties
JkMount /* wwwtmc
ErrorLog logs/www.error_log
CustomLog logs/www.access_log common
</VirtualHost>
<Directory /virHost/wwwroot>
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<VirtualHost *:80>
ServerAdmin www@cxmz.net
ServerName www.a.xx
DocumentRoot /virHost/www/wwwroot
DirectoryIndex index.html index.htm index.jsp index.action
JkMountFile conf/wwwworkermap.properties
JkMount /* wwwtmc
ErrorLog logs/www.error_log
CustomLog logs/www.access_log common
</VirtualHost>
<Directory /virHost/www/wwwroot>
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<VirtualHost *:80>
ServerAdmin bbs@cxmz.net
ServerName bbs.a.xx
DocumentRoot /virHost/bbs/wwwroot
DirectoryIndex index.html index.htm index.jsp index.action
JkMountFile conf/bbsworkermap.properties
JkMount /* bbstmc
ErrorLog logs/bbs.error_log
CustomLog logs/bbs.access_log common
</VirtualHost>
<Directory /virHost/bbs/wwwroot>
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
workers.properties配置信息如下:
worker.list=wwwtmc,bbstmc
worker.wwwtmc.port=6009
worker.wwwtmc.host=www.a.xx
worker.wwwtmc.type=ajp13
worker.wwwtmc.lbfactor=1
worker.bbstmc.port=7009
worker.bbstmc.host=bbs.a.xx
worker.bbstmc.type=ajp13
worker.bbstmc.lbfactor=1
以下
uriworkermap.properties
wwwworkermap.properties
bbsworkermap.properties
大体相同,内容如下(只是bbsworkermap.properties中wwwtmc是bbstmc):
/*=wwwtmc
!/*.jpg=wwwtmc
!/*.gif=wwwtmc
!/*.png=wwwtmc
!/*.bmp=wwwtmc
!/*.html=wwwtmc
!/*.htm=wwwtmc
!/*.swf=wwwtmc
!/*.css=wwwtmc
!/*.js= wwwtmc
输入http://www.a.xx显示如下503错误信息
Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Apache/2.0.59 (Unix) DAV/2 mod_jk/1.2.15 Server at www.a.xx Port 80
我该咋办呢?
...全文
75 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

24,923

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Apache
社区管理员
  • Apache
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧