apache2.0.55+tomcat5.0.28整合问题(tomcat报session null值)
我有一台服务器, 一个固定的IP, 想让我的好个网站在一台服务器上跑起来。 一个是asp 的。 另一人是jsp的。 不知道httpd.conf配置的对不对,跑是跑起来了。但是asp的没什么问题了。 但是jsp的的有些问题。 jsp站里有用户登陆的时候登陆不进去。 session 中, 存不上登陆的信息。 jsp是用tomcat 的。 tomcat服务器输出session 却是null值 (session中存的是用户的ID值)。但在本地服务器没问题。 不知道该怎么解决!
#asp这里是asp的
<VirtualHost *>
ProxyPreserveHost On
ServerAdmin tobacco_pipe@163.com
ServerName www.yishangwang.net.cn
DocumentRoot "E:\yishangwang\yishangwang\ "
DirectoryIndex index.html index.jsp
ProxyPass / http://192.168.1.21:81/
ProxyPassReverse / http://192.168.1.21:81/
</VirtualHost>
<VirtualHost *>
ProxyPreserveHost On
ServerAdmin tobacco_pipe@163.com
ServerName yishangwang.net.cn
DocumentRoot "E:\yishangwang\yishangwang\ "
DirectoryIndex index.html index.jsp
ProxyPass / http://192.168.1.21:81/
ProxyPassReverse / http://192.168.1.21:81/
</VirtualHost>
#jsp这里是jsp的
LoadModule jk_module modules\mod_jk_2.0.46.dll
JkWorkersFile "D:\Program Files\Apache Software Foundation\Tomcat
5.0\conf\workers.properties "
<VirtualHost *>
ServerAdmin tobacco_pipe@163.com
ServerName www.ybbbscom.cn
DirectoryIndex index.jsp index.html index.htm
JkMount /servlet/* ajp13
JkMount /*.jsp ajp13
#JkMount /* ajp13
JkAutoAlias "D:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\countlocal "
Options Indexes FollowSymLinks
#allow from all
ProxyPass / http://192.168.1.21:8080/countlocal/
ProxyPassReverse / http://192.168.1.21:8080/countlocal/
</VirtualHost>
<VirtualHost *>
ServerAdmin tobacco_pipe@163.com
ServerName ybbbscom.cn
DirectoryIndex index.jsp index.html index.htm
JkMount /servlet/* ajp13
JkMount /*.jsp ajp13
#JkMount /* ajp13
JkAutoAlias "D:\Program Files\Apache Software Foundation\Tomcat
5.0\webapps\countlocal\index.jsp "
Options Indexes FollowSymLinks
#allow from all
ProxyPass / http://192.168.1.21:8080/countlocal/
ProxyPassReverse / http://192.168.1.21:8080/countlocal/
</VirtualHost>