AWS Classic Load Balancer + EC2: web API requests returns 404

musicliftsme Source

I have an AWS EC2 Jira instance running behind an AWS Classic load balancer. The site loads in the browser fine, but all API requests are returning 404 for some reason. It is not a Jira 404, but a generic 404 response with no body and minimal headers. Only response useful header seems to be Server: nginx.

Tried white-listing my client IP, opening up all ports, sending request to the LB and directly to the instance with proper security group settings, etc., but same 404 response is returned. I'm using Postman to test the API. I noticed when I load the EC2 instance directly in the browser, it redirects to the load balancer.

Returns 200 with HTML. Basic auth works, too.

GET http://jira (home page)

Returns 404:

GET http://jira/rest/api/2/issue/ticket-num (or any other /rest/ endpoints)

Where should I start looking to debug this 404 issue? I feel like I'm missing something basic. I'm not seeing any Jira configuration for setting up its rest API. I feel like perhaps it's a server configuration issue, although I've never come across manual web server configuration while installing Jira, so maybe on the AWS's side?

EDIT: still waiting to get ssh access to the instance, so I'll update as I get more info and access.



comments powered by Disqus