B4J Question Multiple servers on different ports on one domain?

MichalK73

Well-Known Member
Licensed User
Longtime User
Hello.

It is often the case that I use 3 different ABMaterial applications on one server (test versions). In order not to interfere they are running on different ports. In addition, Apache runs on the server, e.g. 8080.
I have a domain connected to the server.
How to hide the ports of different ABMaterial servers, e.g.
1.address.com:80/443 (Apache) -> address.com
2.address: 3128 (ABMaterial server) -> one.address.com or address.com/one (masked port and works on 80/443)
2.address: 8888 (ABMaterial server) -> two.address.com or address.com/two (masked port and works on 80/443)

Ideas:
1. Use a proxy server e.g. Squid? How?
2. Use Apache redirection? How?
3. Can write something in B4J so that it redirects cheese and ports (masked port) to another address? How?

How would you solve it?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
You will need to use a proxy that supports web sockets. It is more challenging than proxying regular requests.

Can write something in B4J so that it redirects cheese and ports (masked port) to another address? How?
You can send a redirection (resp.SendRedirect). However the user will see the redirected address.
 
Upvote 0
Top