I'm trying to proxy my apache requests to a flaskrestx api.
<Location ~ "/hosts/*/patchstatus">
ProxyPass http://my.company.com:8082/rest_api/hosts/(.*)/patchstatus
ProxyPassReverse http://my.company.com:8082/rest_api/hosts/(.*)/patchstatus
</Location>
This always returns a 504 proxy error:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>502 Proxy Error</title>
</head><body>
<h1>Proxy Error</h1>
<p>The proxy server received an invalid
response from an upstream server.<br />
The proxy server could not handle the request<p>Reason: <strong>Error reading from remote server</strong></p></p>
</body></html>
The (.*) is a hostname that can change depending on what is passed. How do I properly route this request past the proxy?