Actually this is not merging problem, this is quite tricky. Let me call the server(?) which I want to make "HOOLA"
This "HOOLA" contains HTTP server (ex. Apache HTTP Server) and XMPP server (ex. Openfire) Let's assume "HOOLA" is allocated at 18.104.22.168 IP address.
When user make HTTP request to 22.214.171.124, then "HOOLA" hand over this request to inner HTTP server. When user make XMPP request to 126.96.36.199, then "HOOLA" hand over this request to inner XMPP server. And both return its own response to user.
This is what I need to make. But I don't know what I should call this, and I can't search any information since I can't imagine some keywords for this work.
The best solution I want "HOOLA" runs and there is only one process. I think I should modify source code of Apache HTTP Server or Openfire for this solution .
The second best solution I want There are three processes, "HOOLA", "Apache HTTP Server", "Openfire". And "HOOLA" takes controls on all request and response stream. I think I don't need to modify source code of Apache HTTP Server or Openfire for this solution.
If you just let me know what keywords I should use to search, I'll be very appreciate.