I thought that the last configuration was done, and the results were tested in the local test. When I was debugged on the server, I only tested an ASP station and a JSP station, and the actual situation is a plurality of ASP stations and my JSP station. I didn't try it twice, I finally got it after the third time I tried, and I wrote it to be a commemoration.
First tried using:
ServerAdmin feifei0658@sina.com ServerName www.5hope.com DcumentRoot "G: / 5hope DirectoryIndex index.html index.htm index.asp ProxyPass / http://www.5hope.com:88/ ProxyPassReverse / Www.5hope.com:88 / virtualhost>
ServerAdmin feifei0658@sina.com ServerName www.shundabanjia.com DocumentRoot "G: / wuyubing / www" DirectoryIndex index.html index.htm index.asp ProxyPass / http://www.shundabanjia.com:88 / ProxyPassReverse / http://www.shundabanjia.com: 88/ virtualhost>
This is to set the multi-site to set up, and the results have found that only the first site is identified, and the access to other sites is the content of this station, toss a morning, no success. Second attempt to use:
# Add this property ********** ProxyPreserveHost OnServerAdmin feifei0658@sina.com ServerName www.shundabanjia.com DocumentRoot "G: / wuyubing / www" DirectoryIndex index.html index.htm Index.asp proxypass / http://www.shundabanjia.com: 88/ ProxyPassReverse / http://www.shundabanjia.com: 88/ virtualhost>
LoadModule jk_module modules / mod_jk.so JkWorkersFile "D: /tomcat5.0.28/conf/workers.properties" ServerAdmin feifei0658@sina.com ServerName www.openria.cn DirectoryIndex index.html index.htm index.jsp JKMount / * AJP13 JKAUTOALIAS "D: /TOMCAT-5.0.28/webapps/ria" Options Indexes FollowSymlinks Allow from all directory> virtualhost> After checking the official information, I found an attribute, called ProxyPreserveHost On, I tried it, it is possible to use a multiple virtual ASP site, but I defined a conflict with my Tomcat site, I can't access the JSP station, I can't do it. Find again. Third time attempt to use:
NamevirtualHost *: 80
ProxyPreserveHost On ServerAdmin feifei0658@sina.com ServerName www.shundabanjia.com DocumentRoot "G: / wuyubing / www" DirectoryIndex index.html index.htm index.asp ProxyPass / http://www.shundabanjia.com : 88 / ProxyPassReverse / http://www.shundabanjia.com: 88/ virtualhost>
LoadModule jk_module modules / mod_jk.so JkWorkersFile "D: /tomcat5.0.28/conf/workers.properties" ServerAdmin feifei0658@sina.com ServerName www.openria.cn DirectoryIndex index.html index.htm index.jsp JKMount / * AJP13 JKAUTOALIAS "D: /TOMCAT-5.0.28/webapps/ria" Options Indexes FollowSymlinks Allow from all directory> virtualhost>
After repeatedly read the document, this time finally got it. It turned out that "Use name-based virtual hosting." Open, remove the # number in front of NameVirtualHost *: 80, really halo.
It's time to succeed, it seems that there is a problem, I need to see the official information. The information of netizens is still incomplete. Through your own efforts, I found new clues:
Proxypreservehost *: 80 This is also your own gain, I hope these experience can help people need him.
Celebrate again, our website is finally going to open, welcome to visit: www.openria.cn