Port forwarding how to exercise — the Apache Java Server?

Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
Good day,
I have one program written in Java.
The program is something like a Web Server. When the query returns data in JSON format.
and responding on port 55965

can we let it work through Apache?

in principle it is possible to write a small php script which appealed to localhost:55965 and was preserved to have it all on 80th port, but maybe there are better solutions?
the whole thing runs on Ubuntu 18LTS

Thank you all!
by | 8 views

1 Answer

0 like 0 dislike
Yes, of course.
Use mod_proxy
For example:

ProxyPreserveHost On ProxyPass / ProxyPassReverse / 

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
4 answers
0 like 0 dislike
2 answers
110,608 questions
257,186 answers
28,052 users