Kar*_*vis 5 apache mod-proxy nexus
我们正在运行 Sonatype 的 Nexus 来存储我们所有的构建、缓存我们的依赖项等。但是,我想远离默认安装的端口8081URL,而是通过 Apache 代理通过 SSL 托管它。我已经设置了 Apachemod_proxy来代理它,这样就可以https://myserver.com/nexus启动 Nexus。我在我的虚拟主机配置中使用了以下配置指令:
# Configure mod_proxy to be used for proxying URLs on this site to other URLs/ports on this server.
ProxyRequests Off
ProxyVia Off
ProxyPreserveHost On
<Proxy *>
AddDefaultCharset off
Order deny,allow
Allow from all
</Proxy>
# Proxy the Sonatype Nexus OSS web application running at http://localhost:8081/nexus
<Location /nexus>
ProxyPass http://localhost:8081/nexus
ProxyPassReverse http://localhost:8081/nexus
</Location>
Run Code Online (Sandbox Code Playgroud)
这似乎与Running Nexus behind a Proxy中的说明相符。但是,我无法清除 Nexus 中的“基本 URL”设置:它不会让我将其留空。
一切主要工作:我可以在HTTPS URL访问的Nexus,登录,并执行最GUI功能。
但是,在登录时,我收到以下警告消息:
警告: 的基本 URL 设置
http://myserver.com/nexus与您的实际 URL 不匹配!如果您正在运行 Apache mod_proxy,这里有更多关于使用它配置 Nexus的信息。
并不是 GUI 中的所有内容都可以正常工作。到目前为止,我已经注意到以下几点:
访问 /nexus/service/local/feeds 时出现问题。原因:
请求标识的资源只能根据请求中发送的accept头生成具有不可接受的内容特征的响应实体
Nexus 返回错误:ERROR 406:请求标识的资源仅能够根据请求中发送的接受标头生成具有不可接受的内容特征的响应实体
8081站点才能删除任何其他站点。| 归档时间: |
|
| 查看次数: |
6094 次 |
| 最近记录: |