[英]Magnolia CMS: how to configure proxy and bypasses
I'm developing a Magnolia module which will include some RSS feeds as well as some webservice calls to an internal client system. 我正在开发Magnolia模块,其中将包括一些RSS提要以及对内部客户端系统的一些Web服务调用。
My company has a web proxy, so for the RSS feeds to gather data, I have configured the Tomcat server with the proxy details: added the following JVM args to CATALINE_OPTS in setenv.bat: 我的公司有一个Web代理,因此为了RSS提要收集数据,我为Tomcat服务器配置了代理详细信息:在setenv.bat中将以下JVM args添加到了CATALINE_OPTS:
-Dhttp.proxyHost=%hostname% -Dhttp.proxyPort=%port% -Dhttp.proxyUser=%user% -Dhttp.proxyPass=%passwd%
My RSS Aggregator now works, but my webservice calls fail with 403 Forbidden. 我的RSS聚合器现在可以工作,但是我的Web服务调用失败并显示403 Forbidden。 Assuming this is because of the proxy, as it I remove the JVM args, the calls work again.
假定这是由于代理的原因,因为我删除了JVM args,所以调用再次起作用。
Now my questions: 现在我的问题是:
My knowledge of Tomcat config and proxies in general are limited, so please feel free to go into as more detail as you like. 我对Tomcat的配置和代理的了解一般是有限的,所以请随时详细介绍。
I'm not sure what you need, but maybe having a look at virtual URI mapping could help: You find those options inside Magnolia in the Admin Interface in Configuration:modules/adminInterface/virtualURIMapping
(or click on "Default URI"). 我不确定您需要什么,但是也许看一下虚拟URI映射可能会有所帮助:您可以在
Configuration:modules/adminInterface/virtualURIMapping
的管理界面中的Magnolia内部找到这些选项(或单击“默认URI”)。 It's also good to know that Magnolia EE is more powerful here than CE. 很高兴知道Magnolia EE在这里比CE更强大。
More info: http://documentation.magnolia-cms.com/technical-guide/virtual-uri-mapping.html 更多信息: http : //documentation.magnolia-cms.com/technical-guide/virtual-uri-mapping.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.