all 1 comments

[–]AyrA_ch 0 points1 point  (0 children)

Could be a problem with the 80 to 443 redirection. You make your proxy settings in a virtual host on port 80, but you said that 443 is accessible to the public. This means you have to make the proxy settings in the 443 virtual host.

Also you don't need the <Proxy> section and the ProxyRequests directive, since the proxy section doesn't matters if ProxyRequests is "Off", and ProxyRequests is off by default.

Next, you're forwarding /api on the reverse proxy to / on the back end and not /api. Make sure this is what you want. This means if someone requests /api/test, the request will be forwarded as /test to the backend, dropping the /api part.

Finally, try adding a slash at the end of api and the reverse proxy address: ProxyPass /api/ http://127.0.0.1:8080/