Apache+php+mysql+phpmyadmin+j2sdk+tomcat整合方法(6) DocumentRoot "/webroot/surport" ServerName surport.example.com Options ExecCGI Order allow,deny Allow from All DirectoryIndex index.jsp index.php index.php3 index.htm index.html 17.重新启动tomcat和apache服务测试配置。在D:\webroot\www和D:\webroot\surport下放一个test.php和一个test.jsp 其中test.php内容如下: test.jsp内容如下: 测试过程如下:在浏览器中输入http://127.0.0.1应该进入phpmyadmin的登录界面输入http://127.0.0.1:8080应该进入Tomcat欢迎界面输入http://www.example.com/test.php应该显示php环境信息输入http://www.example.com/test.jsp应该显示“4”输入http://10.10.10.10/test.php应该显示php环境信息输入http://10.10.10.10/test.jsp应该显示“4”输入http://surport.example.com/test.php应该显示php环境信息输入http://surport.example.com/test.jsp应该显示“4”18.如果以上测试均成功的话,现在请删掉test.php和test.jsp,在要发布的目录里放上您要发布的文件。