我可以通过mod_proxy使Apache与Tomcat对话。实际上,我参考了以下链接以使其正常工作(大多数情况是对Apache中的httpd.conf和Tomcat中的server.xml进行了更改):
http://tomcat.apache.org/tomcat-5.5-doc/proxy-
howto.html
http://confluence.atlassian.com/display/DOC/Using+Apache+with+mod_proxy
http://publib.boulder。
ibm.com/infocenter/cqhelp/v7r0m0/index.jsp?topic=/com.ibm.rational.clearquest.webadmin.doc/rwp/t_config_mod_proxy_support.htm
然后,我通过[this link] [1]用Apache配置了PHP,并用Apache配置了PHP。
因此,作为测试程序,我能够从诸如http:// localhost / example /
servlet之类的Apache访问servlet程序(Tomcat),然后也使用诸如http://
localhost /
phptest的URL访问PHP程序。
蔡司,保罗和文森特。感谢你的帮助。尽管我还有很长的路要走,但这似乎是起点。
=== httpd.conf in Apache server ===# enable the below or add newLoadModule proxy_module modules/mod_proxy.soLoadModule proxy_http_module modules/mod_proxy_http.so# Start Modules for PHPLoadModule php5_module "c:/php/php5apache2_2.dll"AddHandler application/x-httpd-php .php# configure the path to php.iniPHPIniDir "c:/windows"# Just at the end of 'Main' server configuration - add the belowProxyRequests On ProxyVia On <Proxy *> Order deny,allow Allow from all</Proxy>ProxyPass /examples http://localhost:8080/examples/ProxyPass /servlets http://localhost:8080/examples/servlets/ProxyPass /jsp http://localhost:8080/examples/jsp/ProxyPassReverse /examples http://localhost:8080/examples/# Finish Modules for PHP=== server.xml in Tomcat ===<!-- searched the below connector port=8080 and I replaced that tag with the below --> <Connector port="8080" maxHttpHeaderSize="8192"maxThreads="150" minSpareThreads="25" maxSpareThreads="75"enableLookups="false" redirectPort="8443" acceptCount="100"connectionTimeout="20000" disableUploadTimeout="true"proxyName="http://localhost" proxyPort="80"/>



