小编典典
我可以通过mod_proxy使Apache与Tomcat对话。实际上,我参考了以下链接以使其正常工作(大多数情况是对Apache中的httpd.conf和Tomcat中的server.xml进行了更改):
然后,我通过[this link] [1]用Apache配置了PHP,并用Apache配置了PHP。
蔡司,保罗和文森特。感谢你的帮助。尽管我还有很长的路要走,但这似乎是起点。
=== httpd.conf in Apache server ===
# enable the below or add new
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
# Start Modules for PHP
LoadModule php5_module "c:/php/php5apache2_2.dll"
AddHandler application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "c:/windows"
# Just at the end of 'Main' server configuration - add the below
ProxyRequests On
ProxyVia On
Order deny,allow
Allow from all
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 ===
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true"
proxyName="http://localhost" proxyPort="80"/>
2020-06-16