简体   繁体   English

木兰CMS:如何配置代理和绕过

[英]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: 现在我的问题是:

  1. How do I configure proxy bypasses to my webservice host domain (ie *.intws.co.uk) in Tomcat? 如何在Tomcat中为我的Web服务主机域(即* .intws.co.uk)配置代理绕过?
  2. Is there a way to configure the proxy details in Magnolia? 有没有一种方法可以在Magnolia中配置代理详细信息? My clients will have different proxy settings which I want them to managed (in Magnolia rather than Tomcat files). 我的客户端将具有我希望它们管理的不同代理设置(在Magnolia中而不是Tomcat文件中)。
  3. Can bypass hosts also be configured in Magnolia? 是否可以在Magnolia中配置旁路主机? Again my clients might have their web services installed under different hostnames. 同样,我的客户端可能以不同的主机名安装了他们的Web服务。

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM