How to set up a Minecraft server?

SYSTEM INFORMATION
OS type and version AlmaLinux 9.2
Webmin version 2.021
Virtualmin version 7.7 Pro

I know how to do the thing of installing it, but how do I arrange it so that it’ll only work via one domain name?

Would it be the same as adding any other service (Webmin / Servers / Apache Webserver / Create virtual host)?

If so, is there a way to limit the range of ports listened to or would it have to be “one or all?”

Also, would I simply point to the directory that the main java file is located?

If you’re using Virtualmin, you’d never have reason to go there to create a new domain.

I don’t understand this question. Apache listens on the ports it is explicitly told to listen on. That’s 80 and 443, by default, and each VirtualHost decides which ports it’ll use, as well.

I don’t know anything about Minecraft servers, but that seems very unlikely. I would assume it is a server you need to run, and then proxy to it using Apache. In which case, it’s like almost any other modern web application. But, if it’s a standalone server that clients contact directly, then Apache has nothing to do with it.

I have written an api to install and maintain game servers it’s not difficult to do (run a game server) you don’t need apache or anything else as it runs in it’s own environment.

for an off the peg solution look at minecraft server. my api used to support minecraft but no one used it so I discontinued support for it.
The only difference to the install instructions I would do is to not bother making a new user for it install minecraft as an existing user, and use firewalld to open what ports you need, the it should run fine

Where is it? :grin:

Also, I’m hoping to learn how to do it myself in regards to installing it and having it run only for a specific domain name (and port number, of course). If you know of any guides that give examples of how to do that, it would be greatly appreciated.

Still wouldn’t getting that API though. :wink:

give me some time to add support for minecraft in again (it’s been a couple of years since I removed it and things may have changed) and test it then I will give you a link to get it. but if you want to install today the link I posted will work fine. Don’t forget game servers use IP’s to listen on & don’t care about users so getting it to

would perhaps mean getting an extra IP address for a domain, but tbf I don’t see the point in that you can alter the name of the server to whatever you want through the MC config files & command line

Nah, don’t put any effort into it on my behalf. If you want to do it just because then that’s cool, but if it’s just for me then don’t worry with it.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.