服务器基础 URL是用户访问Confluence的url地址。
Confluence在安装过程中自动检测基本URL,如果Confluence的URL发生更改,或者如果将Confluence从不同的URL设置为将用于公开访问它的URL,则可能需要手动设置。
需要具有系统管理员权限才能执行此功能。
配置步骤:
“配置”--》“一般配置”,点击“编辑”
示例:
如果Confluence被安装为在非根上下文路径中运行(也就是说,它有一个上下文路径),那么服务器的基本URL应该包括这个上下文路径。例如,如果Confluence在以下位置运行:
http://www.foobar.com/confluence
则服务器基本URL应该是:
http://www.foobar.com/confluence
注意:
1. 使用不同的URL。如果配置了不同的基本URL,或者访问者使用其他URL访问Confluence,则在查看某些页面时可能会遇到错误。
2.更改上下文路径context path。
如果更改基本URL的上下文路径,还需要进行以下更改:
1)停止Confluence
2)进入Confluence installation directory and edit <installation-directory>\conf\server.xml
.
3)更改Context元素中path属性的值以反映上下文路径。例如,如果Confluence在http://www.foobar.com/confluence,则您的路径属性应如下所示:
<context path="/confluence" docBase="../confluence" debug="0" reloadable'"false" useHttpOnly="true">
在本例中,我们使用了/communication作为上下文路径。请注意,不能使用/resources作为上下文路径,因为Confluence使用了/resources,这将在以后造成问题。
4)保存文件
5)进入Confluence home directory编辑 <confluence-home>/confluence.cfg.xml
6)更改confluence.webapp.text.path以反映新的上下文路径。例如:
<property name="confluence.webapp.context.path">/confluence</property>
7)重新启动Confluence并检查是否可以在http://www.foobar.com/confluence.
可能还想在重新启动之前清除Confluence插件缓存。
3.代理
如果Confluence在代理后面运行,请确保代理名称与基本URL匹配。例如:proxyName=“foobar.com”proxyPort=“443”scheme=“https”。这将确保我们正确地传递信息。有关代理Atlassian应用程序的更多信息,请参阅代理AtlassianServer应用程序Proxying Atlassian Server applications | Atlassian Support | Atlassian Documentation。
此信息需要添加到位于{CONFLUENCE_INSTALLATION}\conf\server.xml的Connector元素中。