HTTPD Redirect Rule as Proxy is giving me file not found error. How do I proxy to an external url?
0
votes
1
answer
681
views
I have a reverse proxy to AWS Elasticsearch. I am having issues with using
RedirectRule
: no matter what I try, my URL is being interpreted as a file.
SSLProxyEngine On
ProxyRequests On
ProxyPreserveHost On
RewriteEngine On
RewriteRule /test-api https://vpc-cls-elasticsearch-test-tmqu2s2mcftvsuqe.amazonaws.com [P]
ProxyPassReverse /test-api https://vpc-cls-elasticsearch-test-tmqu2s2mcftvsuqe.amazonaws.com
Calling https://example.com/test-api always returns this error:
The requested URL /cls-api was not found on this server
How can I get this to work without the existence of an actual file on my server?
Asked by gerbdla
(11 rep)
Mar 16, 2021, 03:59 PM
Last activity: Mar 17, 2021, 06:21 PM
Last activity: Mar 17, 2021, 06:21 PM