在配置文件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的服务
分享到:
相关推荐
网上看到jetty-proxy有反相代理功能,根据很多网页配置并未成功,感觉是jetty版本更新比较快,文档跟不上,所以把我调试通过的上传一下。jetty版本9.4.6
apache-jetty-
( apache+jetty负载配置案例.zip ) 亲测可用,文档+APACHE原文件,稍做修改即可直接使用,可隐藏后端真实服务器地址,加上域名则更完美!!! 有需要的朋友自行下载使用。
自己写的jetty6在eclipse启动中配置说明
Jetty配置支持HTTPS以及受信网站证书生成方式
Jetty9 配置使用HTTPS证书,访问你的服务器更安全,更好的配置方法。
jetty启动配置文件
JETTY启动文件配置方法.txt
配置Apache httpd和Jetty教程 配置Apache mod_proxy和Jetty 配置Jetty中的AJP13 在JBoss中配置Jetty Remote Glassfish EJBs from Jetty Jetty and Spring EJB3 (Pitchfork) JBoss EJB3 ObjectWeb EasyBeans (aka ...
简单jetty配置
NULL 博文链接:https://bingyingao.iteye.com/blog/1277090
Java Eclipse ee集合jetty和配置
maven jetty插件配置指南。 看看就知道。
Eclipse Maven项目中配置Jetty,本工程为maven项目。
jetty9资源通过官网下载实在太慢,为了国内程序员快速获得jetty资源,特别上jetty在idea编译器上的配置教程。
tomcate和jetty虚拟目录配置方法,里面带配置文件例子
Eclipse与Jetty服务器集成的最简单方法
Jetty 配置 SSL 如何在jetty下配置SSL
jetty是什么 jetty配置 jetty使用 jetty嵌入 jetty启动 jetty部署 jetty教程 jetty嵌入式 jetty
jetty的xml文件配置说明