需要在RHEL 7.3中为Apache Tomcat设置代理服务器



我有3个机器,带有IPS 10. .56,10。 .57和10. 。/em> .58。我如何使用tomcat8代理连接所有它们。

到现在为止,我已经在tomcat8/bin/文件夹中制作了一个新的文件setenv.sh,并写下了以下行。但这似乎不起作用。

导出java_opts =" $ java_opts dhttp.proxyhost =10。 .56 | 10。 .57 | 10。。58 -dhttp.proxyport = 8080 -dhttps.proxyhost =10。 .56 |10。 .57 | 10.57 |10。 .58-dhttps.proxyport = 8080 -dhttp.nonproxyhosts = localhost"

让我知道我是否遵循正确的过程或也需要修改任何其他文件。

以下链接可帮助您使用多个

设置代理

http://w3devops.com/add-http-https-proxy-http-non-proxy-proxy-jenkins-jenkins-via-tomcat-server/

但是,我认为tomcat并不是执行HTTP https代理的最佳选择。请随时尝试Apache或Ngnix。

apache

https://www.digitalocean.com/community/tutorials/how-to-to-so-use-apache-http-server-as-as-res-resver-proxy-proxy-usis-usis-usis-usis-proxy-proxy-extension

ngnix

https://www.digitalocean.com/community/tutorials/understanding-nginx-http-proxying-load-load-balancing-balancing-buffering-and-caching

它可能有一天可以帮助您:)

最新更新