Nexus webapp,如何使用/代替/nexus作为基本URI [英] Nexus webapp, how to use / instead of /nexus for base URI

查看:244
本文介绍了Nexus webapp,如何使用/代替/nexus作为基本URI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在具有OpenJDK 7的Ubuntu 12.04上使用2.6.3构建新的Nexus服务器.

I'm attempting to build a new Nexus server using 2.6.3 on Ubuntu 12.04 with OpenJDK 7.

我有一个空的存储库在端口8081上运行,前面的nginx在端口80上进行应答.

I have an empty repository running on port 8081, with nginx in front of it answering on port 80.

但是该应用程序不会在 http://nexus.example.net/处回答,而仅在 http://nexus.example.net/nexus/.根/发送回404.

But the app doesn't answer at http://nexus.example.net/, only at http://nexus.example.net/nexus/. The root / sends back a 404.

我认为nexus.properties中的nexus-webapp和nexus-webapp-context-path属性可能会解决此问题,但是当我更改它时,它为我提供了sonatype-work/nexus目录的通用目录列表.

I thought maybe the nexus-webapp and nexus-webapp-context-path properties in nexus.properties would fix that, but when I change that it gives me a generic directory listing of the sonatype-work/nexus directory.

推荐答案

查看您可以继续在/nexus上下文中运行它.只需在nginx中调整您的代理/反向代理设置即可.

You can keep running it in the /nexus context or not. Just adjust your proxy/reverse proxy setup in nginx.

这篇关于Nexus webapp,如何使用/代替/nexus作为基本URI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆