Tomcat通过服务/连接器转发请求
我正在寻找一种转发请求的方法。我想在我的服务 (conf/server.xml) 中设置过滤规则(通过 URI)。这可能吗?这是我的示例服务:
<Service name="indexbuilder">
<Connector acceptCount="100" connectionTimeout="20000"
disableUploadTimeout="true" enableLookups="false" maxHttpHeaderSize="8192"
maxSpareThreads="75" maxThreads="150" minSpareThreads="25" port="8282"
redirectPort="8443" />
<Engine defaultHost="localhost" name="indexbuilder">
<Host autoDeploy="true" name="localhost" unpackWARs="true"
xmlNamespaceAware="false" xmlValidation="false" appBase="indexbuilder">
</Host>
</Engine>
</Service>
i'm looking for a way to forward requests. I want to set the filtering rules (by URI) in my service (conf/server.xml). Is that possible? Here my example service:
<Service name="indexbuilder">
<Connector acceptCount="100" connectionTimeout="20000"
disableUploadTimeout="true" enableLookups="false" maxHttpHeaderSize="8192"
maxSpareThreads="75" maxThreads="150" minSpareThreads="25" port="8282"
redirectPort="8443" />
<Engine defaultHost="localhost" name="indexbuilder">
<Host autoDeploy="true" name="localhost" unpackWARs="true"
xmlNamespaceAware="false" xmlValidation="false" appBase="indexbuilder">
</Host>
</Engine>
</Service>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论