I know that this is a common question, and there are answers for the same, but the reason I ask this question is because I do not know how to approach the solution, especially for aapanel.
What I want to do is, make app.example.com point to example.com:8142. How exactly do I go about doing this? I am pretty sure that I will have to point app.example.com to the same IP as example.com, since it is the same box that will be serving it. And, nginx will be the first one to handle these requests at port 80. Is there a way with which I can make nginx forward all requests to localhost:8142?
I'm using aapanel 6.8.6 and Tengine.