I'm trying to redirect OpenTSDB API with apache2
. Here is my configuration(Apache doc)
ProxyPassMatch /api/* http://127.0.0.1:4343/api/$1
The server has apache2
and TSDB
. I'm able to access <ip>:4343/api/version
which is showing version info.
But If I try to access <ip>/api/version
, showing Error Code:404 "Endpoint not found"
. So, what's happening here?
The problem is the regular expression; the apache is forwarding the incorrect API URL to TSDB.
After playing with that apache config, I'm able to redirect the request with below config.
ProxyPassMatch "/api/*" "http://127.0.0.1:4343"