- 论坛徽章:
- 0
|
apache 虚拟主机+tomcat 问题
实在不想麻烦大家,,可我真弄了一整天了还是还是没有搞定
我先配置了apache + tomcat 用的jk2 连接,,没有问题。。
其实也有个问题
workers2.properties
里面如果
[uri:/*]
group=lb
他就不解析php了,,我只好
[uri:/tomcat-docs/*]
group=lb
这样一个目录一个目录来
凑合解决了后
root@gntserver conf]# cat workers2.properties
[shm]
info=Scoreboard. Requried for reconfiguration and status with multiprocess servers.
file=anon
# Defines a load balancer named lb. Use even if you only have one machine.
[lb]
# Example socket channel, override port and host.
[channel.socket]
port=8009
host=127.0.0.1
# define the worker
[ajp13]
channel=channel.socket:localhost:8009
group=lb
# Map the Tomcat examples webapp to the Web server uri space
[uri:/rcity/*]
group=lb
[uri:/gntchina/*]
group=lb
#[uri:/*]
#group=lb
[uri:/tomcat-docs/*]
group=lb
#
#[status:]
#info=Status worker, displays runtime information
#
#[uri:/jkstatus/*]
#info=The Tomcat /jkstatus handler
#group=status:
接着,,我给apache设置上虚拟主机,,怪事情就出现了。。
tomcat 不解析 jsp了,,
但我一不用虚拟主机,它又好了,,
ServerName www.server.com
NameVirtualHost 192.168.10.111
<VirtualHost 192.168.10.111>;
ServerName www.rcity.com
ServerAdmin orciloud@mop.com
DocumentRoot /home/httpd/html/rcity
ErrorLog logs/rcity/error_log
CustomLog logs/rcity/access_log combined
</VirtualHost>;
<VirtualHost 192.168.10.111>;
ServerName www.gntchina.com
ServerAdmin orciloud@mop.com
DocumentRoot /usr/local/tomcat/webapps/gntchina
ErrorLog logs/gntcn/error_log
CustomLog logs/gntcn/access_log combined
</VirtualHost>;
请各位有经验的老大多多指教。。这儿先谢谢啦。。。。 |
|