After configuring the integration of APACHE and TOMCAT, the window.parent.document in firefox cannot be used (http_proxy port problem)
I used http_proxy to configure the load balancing of apache and tomcat on linux, and later found that in firefox
window.parent.document.getElementById("menu").src="content/contentNav.jsp";
There is no response and cannot jump. But it is possible on IE. There is such an error prompt in firebug
"http://www.328g.com:88 à³ CPÎ http://www.328g.com ûÖ^' Window.document ".
Later, I tested it with alert and found that the port in the basePath of the page is the port of tomcat, and the website address is originally the port of apache. I haven't figured out the principle of http_proxy until now. It should be that apache directly transfers to tomcat after discovering the jsp request, so The port of basePath is the port of tomcat. After finding that http_proxy is not easy to use, I plan to use mod_jk instead, and then use alias to point the virtual path to the project address. Then there was a problem, and I found that I couldn’t jump correctly. I tried for a long time, and finally Adding DirectoryIndex finally solved the problem. It turns out that the default page of my project is login.jsp, and apache has not been set.
Finally, post the VirtualHost configuration of apache for future reference.
<VirtualHost *:80>
DocumentRoot "/home/isp/webapps/hostroot/328g.com"
DirectoryIndex index.html index.htm index.php login.jsp index.jsp
ServerName 328g.com
ServerAlias www.328g.com *.328g.com
ErrorLog "logs/328g.com-error_log
CustomLog "logs/328g.com-access_log" common
# ProxyRequests off
# ProxyPass /isp_ims http://www.328g.com:88/isp_ims
# ProxyPassReverse /isp_ims http://www.328g.com:88/isp_ims
ProxyPass /isp_mail !
ProxyPass /isp_mysql !
ProxyPass /isp_help !
# ProxyPass / http://www.328g.com:88/
# ProxyPassReverse / http://www.328g.com:88/
JkMount /*.action ajp13
JkMount /*.jsp ajp13
Alias /isp_ims /home/isp/webapps/ims
Alias /isp_mail /home/isp/webapps/squirrelmail
Alias /isp_mysql /home/isp/webapps/phpmyadmin
Alias /isp_help /home/isp/webapps/help
</VirtualHost>