Apache+php+mysql+phpmyadmin+j2sdk+tomcat整合方法(5) worker=ajp13:localhost:8009 [uri:surport.example.com/*.jsp] worker=ajp13:localhost:8009 [uri:10.10.10.10/*.jsp] worker=ajp13:localhost:8009 [uri:127.0.0.1/*.jsp] worker=ajp13:localhost:800915.设置Tomcat的虚拟站点,编辑D:\Tomcat\conf\server.XML(编辑前关掉Tomcat服务), 搜索 修改成 搜索<Host name="localhost" debug="0" appBase="webapps" 在这行上面加入以下几行: 16.配置Apache的虚拟站点,编辑D:\Apache2\conf\httpd.conf文件(编辑前关掉Apache服务) 在文件最后加上: NameVirtualHost 10.10.10.10 DocumentRoot "/webroot/www" ServerName http://www.example.com Options ExecCGI Order allow,deny Allow from All DirectoryIndex index.jsp index.php index.php3 index.htm index.html DocumentRoot "/webroot/www" ServerName 10.10.10.10 Options ExecCGI Order allow,deny Allow from All DirectoryIndex index.jsp index.php index.php3 index.htm index.html