Sounds like a basic question, but I don't know about apache config. Any help would be great.
Since Open TSDB wont support https to send data(via REST API), we want to create a https proxy in apache or "Apache Tomcat". For example, the local machine has both TSDB and Apahce. The apache should accept http and https, if I send any to https://<PUBLIC IP>/api/input
, it should forward to TSDB
in that same machine (Or TSDB
could be in different machine) with http
.
The big picture
MY Code
<---->https://<PUBLIC IP>/api/input
<----Proxy to---->http://localhost/api/input
Above I mentioned Apache Tomcat
because, mainly we are using Apache Tomcat for other purpose so, first priority is Tomcat(Is it possible with Tomcat?).
NOTE: I know the difference between Apache
and Apache Tomcat
: Apache is http web server handles the http traffic only, tomcat is servelet container to process the request(For Java only). In build Tomcat has Apache.(Please correct me, if I am wrong)