Apache 反向代理配置与Jetty配置
在配置文件httpd.conf最后添加
<IfModule mod_proxy.c> ProxyRequests Off ProxyPreserveHost On ProxyErrorOverride On #* java_app_err_thorw_to_httpd *# <Directory proxy:*> Order deny,allow Allow from all </Directory> ProxyPass /r http://localhost:8080/r #*min=1 smax=5 ttl=600 timeout=100*# ProxyPass / http://localhost:8080/ SetEnv force-proxy-request-1.0 1 SetEnv proxy-nokeepalive 1 </IfModule>
为了让Jetty不直接暴露http服务
<Call name="addConnector"> <Arg> <New class="org.eclipse.jetty.server.nio.SelectChannelConnector"> <Set name="host"><Property name="jetty.host" default="localhost"></Property></Set> <Set name="port"><Property name="jetty.port" default="${bpmhelp_app_port}"/></Set> <Set name="maxIdleTime">20000</Set> <Set name="Acceptors">2</Set> <Set name="acceptQueueSize">256</Set> <Set name="statsOn">false</Set> <Set name="confidentialPort">8443</Set> <Set name="lowResourcesConnections">250</Set> <Set name="lowResourcesMaxIdleTime">5000</Set> </New> </Arg> </Call>
去掉
<Set name="host"><Property name="jetty.host" default="localhost"></Property></Set>
就可以直接访问jetty的服务
相关推荐
smallwhale 2011-07-13
HatsuneMiku 2011-06-19
stoneechogx 2019-10-23
积跬步以至千里 2016-07-11
CSDNMrWang 2011-05-19
码路心路知行合一 2011-11-18
易鲸捷大数据库 2015-01-23
xggnoh 2013-05-10
wangteng 2012-09-16
bgylde 2012-05-21
dangzhangjing 2011-08-30
vallenlsl 2010-11-09
TangCuYu 2013-06-26
wanchaopeng 2019-06-21
87901735 2019-05-29
lizhengfa 2019-05-17