dynmap icon indicating copy to clipboard operation
dynmap copied to clipboard

Two maps for two servers

Open StonFlip opened this issue 3 years ago • 11 comments

Hello, how can I make 2 Dynmap maps online if I have 2 servers on the same VDS ?

Map of the first server: https://map.cbtpolit.xyz/

StonFlip avatar Sep 04 '22 14:09 StonFlip

you can just add another subdomain to the ip, with a different port, like server1.domain.com and server2.domain.com

JurgenKuyper avatar Sep 04 '22 14:09 JurgenKuyper

you can just add another subdomain to the ip, with a different port, like server1.domain.com and server2.domain.com

I use my own web server and only have port 80 available for CloudFare

StonFlip avatar Sep 04 '22 14:09 StonFlip

you can use a reverse proxy to hide the port, so the backend server can have a different port than the http (80) port, any google guide on how to setup a reverse proxy for your webserver flavour has the info needed to set that up.

JurgenKuyper avatar Sep 04 '22 14:09 JurgenKuyper

you can use a reverse proxy to hide the port, so the backend server can have a different port than the http (80) port, any google guide on how to setup a reverse proxy for your webserver flavour has the info needed to set that up.

Is TCPShield suitable for hiding a port? I just do not fully understand how this will work, do I need to specify port 25599 in the Dynmap config? Then there will be no https protection from CloudFire

If you can, then you could do it step by step how to do it well, for example

  1. Go to Google
  2. Write it
  3. Do as it says
  4. You did it

Thanks in advance)

StonFlip avatar Sep 04 '22 14:09 StonFlip

TCPShield is not suitable for that no, you said you have a VDS, maybe you can install a webserver on it, like nginx, and follow a guide like: https://phoenixnap.com/kb/nginx-reverse-proxy#ftoc-heading-8. Setting up a reverse proxy is out of scope for dynmap, as it is not a feature of dynmap itself.

JurgenKuyper avatar Sep 04 '22 14:09 JurgenKuyper

Apache web server is not suitable for this purpose?

StonFlip avatar Sep 04 '22 15:09 StonFlip

use google.

JurgenKuyper avatar Sep 04 '22 15:09 JurgenKuyper

Okay, I got it right.. What can I specify with the port of the first dynmap server 25598, for example, the second 25599, then configure them to be forwarded to port 80 via nginx?

StonFlip avatar Sep 04 '22 15:09 StonFlip

any port that is not in use can be used by dynmap, and thus be specified in the page's config

JurgenKuyper avatar Sep 04 '22 15:09 JurgenKuyper

So, did I get it right?

StonFlip avatar Sep 04 '22 15:09 StonFlip

https://tryitands.ee

JurgenKuyper avatar Sep 04 '22 15:09 JurgenKuyper