79493295

Date: 2025-03-07 19:28:49
Score: 0.5
Natty:
Report link

I had a very similar problem to what you describe, and finally tracked it down today. In my scenario, I wanted to use API Gateway to deliver requests to a private EC2 instance running LAMP stack and WordPress, and needed access to a custom API at https://wordpress.example.com/api/product which is currently only accessible on our private network.

I finally found that Apache HTTPD is redirecting me to a path with a trailing / so it was trying to redirect me to https://wordpress.example.com/api/product/. I changed my Endpoint URL to have the trailing slash, and that resolved the redirecting issue.

Reference: https://stackoverflow.com/a/64533237/2329657

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Aaron St. Clair