A
Admincraftā€¢6d ago
Groovyy

Domain & pl3xmap

Hey so I own an earth server and I use pl3xmap for the online map. Just wondering how can I link my subdomain map.astrosmp.fun to my pl3xmap map. Currently ive configured pl3xmap to connect the map with this link http://play.astrosmp.fun:25566/ I have no idea of how domains work so please guide me
Pl3xMap
Pl3xMap is a minimalistic and lightweight world map viewer for Minecraft servers using the vanilla Minecraft rendering style
38 Replies
Error110
Error110ā€¢6d ago
@Groovyy do u own the server or you use a shared host
Groovyy
GroovyyOPā€¢6d ago
I have a vps
Error110
Error110ā€¢6d ago
so you can ssh?
Groovyy
GroovyyOPā€¢6d ago
I have no idea but my server partner can why that
Error110
Error110ā€¢6d ago
nvm ignore me do you want it to use https or http
Groovyy
GroovyyOPā€¢6d ago
Anything works
Error110
Error110ā€¢6d ago
ok final question do you have a panel
Groovyy
GroovyyOPā€¢6d ago
I do
Error110
Error110ā€¢6d ago
ok here how to do - go into you node, allocate then add port 80 and your ip into the node - add that allocation to your main server - in pl3xmap config made the port 80 from 25566 - go into your domain settings and make a new record for map.astrosmp.fun if using cloudflare turn off the proxy setting - once all is done restart earth server any more questions on the steps just ask
Groovyy
GroovyyOPā€¢6d ago
The port that I have rn won't work and which type of record? I'm using namecheap rn
Error110
Error110ā€¢6d ago
just a A record put your ip into it I mean it works but you would have to keep 25566 on your domain if you do port 80 it will auto show so people can just do http://map.astrosmp.fun and see your cool map O wait do you have a nginx config for the map?
Error110
Error110ā€¢6d ago
Pl3xMap
Pl3xMap is a minimalistic and lightweight world map viewer for Minecraft servers using the vanilla Minecraft rendering style
Error110
Error110ā€¢6d ago
so far so good
Groovyy
GroovyyOPā€¢6d ago
Alright so I'll add the numericip:80 to the A record and it'll work?
Error110
Error110ā€¢6d ago
no just the ip o wait
Groovyy
GroovyyOPā€¢6d ago
yes it works, I just want to get rid of the port
Error110
Error110ā€¢6d ago
do you mean the panel
Groovyy
GroovyyOPā€¢6d ago
When I added the ip, it opens my panel when going through map.astrosmp.fun
Error110
Error110ā€¢6d ago
o do you know how to use ssh? if not I can make a nginx config then you send it to whoever is technical on your server
Groovyy
GroovyyOPā€¢6d ago
Sure nope What will it do btw?
Error110
Error110ā€¢6d ago
server {
listen 80;
# change to domain
server_name map.example.com;

# change to domain
if ($host = map.example.com) {
return 301 https://$host$request_uri;
}
}

server {
listen 443 ssl;
server_name map.geoquestmc.com;
# change to location of your ssl files for your panel.
ssl_certificate ;
ssl_certificate_key ;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;

location / {
# change to port of your plexmap
proxy_pass http://172.18.0.1:8123;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
server {
listen 80;
# change to domain
server_name map.example.com;

# change to domain
if ($host = map.example.com) {
return 301 https://$host$request_uri;
}
}

server {
listen 443 ssl;
server_name map.geoquestmc.com;
# change to location of your ssl files for your panel.
ssl_certificate ;
ssl_certificate_key ;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;

location / {
# change to port of your plexmap
proxy_pass http://172.18.0.1:8123;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
it checks the domain if its map. it will redirect to the domain of the map this isnt perfect but should do the trick given how your server is currently setup
Groovyy
GroovyyOPā€¢6d ago
Alright, I'll send this to my friend and let you know. I'm assuming this will get rid of the port from the domain I'll lyk if this works
Error110
Error110ā€¢6d ago
ye it should mk
Tamz
Tamzā€¢6d ago
gonna try making them use a cloudflare tunnel? would be eaiser tbf šŸ‘€
Error110
Error110ā€¢6d ago
no I was gonna get them setup http nginx then was gonna make them just have there map port 80 then realised they had a panel and went back to nginx config if there tech guy can setup a panel hopfully didnt script it and can do nginx config šŸ™
Tamz
Tamzā€¢6d ago
hmm good hopeful but i think it was a script :yeahyupyupyepyepyupmhmyeah: we shall see soon if not they good if yes, cf tunnel it ngl
Error110
Error110ā€¢6d ago
na they using namecheap cba that
Tamz
Tamzā€¢6d ago
oh :SadgePlant: that sucks
Error110
Error110ā€¢6d ago
worst case i give them each command instruction šŸ˜­
Tamz
Tamzā€¢6d ago
cant they nameserver transfer and be fine? šŸ™
Error110
Error110ā€¢6d ago
ye but doesnt it take like 3h
Tamz
Tamzā€¢6d ago
24h at times your right
Error110
Error110ā€¢6d ago
sadge
Tamz
Tamzā€¢6d ago
very but worth imo
Error110
Error110ā€¢6d ago
true
Groovyy
GroovyyOPā€¢6d ago
Pl3xMap
Pl3xMap is a minimalistic and lightweight world map viewer for Minecraft servers using the vanilla Minecraft rendering style
Groovyy
GroovyyOPā€¢6d ago
!!!
Error110
Error110ā€¢6d ago
šŸ‘ U can close this now I'm guessing

Did you find this page helpful?