提交 156e6348 编写于 作者: V vjuranek

Merge pull request #398 from alexlehm/master

Mention reverse proxy issues on javadoc for getRootUrlFromRequest
......@@ -1767,6 +1767,12 @@ public class Jenkins extends AbstractCIBase implements ModifiableItemGroup<TopLe
* correctly, especially when a migration is involved), but the downside
* is that unless you are processing a request, this method doesn't work.
*
* Please note that this will not work in all cases if Jenkins is running behind a
* reverse proxy (namely when user has switched off ProxyPreserveHost, which is
* default setup) and you should use getRootUrl if you want to be sure you reflect
* user setup.
* See https://wiki.jenkins-ci.org/display/JENKINS/Running+Jenkins+behind+Apache
*
* @since 1.263
*/
public String getRootUrlFromRequest() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册