栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

同一应用程序上的两种不同语言的PHP和Java,Apache上的PHP和Tomcat上的Java

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

同一应用程序上的两种不同语言的PHP和Java,Apache上的PHP和Tomcat上的Java

我可以通过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"/>


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/466892.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号