API not found when accessing from localhost - Sonatype Nexus Repository - Sonatype Community
API not found when accessing from localhost
post by anton1 on Nov 16, 2022
Anton Pham
Hi,
We have a straightforward Nexus Repo 3 running behind our firewall with a reverse proxy in front for access:
Internet (443) > Reverse Proxy > Nexus (8081)
When we access the following API we can retrieve the results:
https://domain.com/v2/[slug]/tags/list
However, when we try to access the same link locally we receive a 404 not found error:
http://localhost:8081/v2/[slug]/tags/list
I can confirm that server settings are:
application-port=8081
application-host=0.0.0.0
Any ideas what could be wrong?
post by mpiggott on Nov 16, 2022
Matthew Piggott
Nexus doesn’t have an API at /
post by mmartz on Nov 16, 2022
Mmartz
I can only assume your reverse proxy is translating the api urls. Normally an api call starts with something like /service/rest/v1.