is it possible to create a virtual server that can be opened on an existed domain but on a separate port?
If I already have mydomain.com:80 and I can use mydomain.com:10000 for Virtualmin I want to have my second virtual server on mydomain.com:11000 (I want to keep mydomain.com:80 as my first server too)
or
is it possible to open the specific directory in the domain’s folder puplic_html like mydomain.com:11000
Virtualmin runs on port 10000 globally across the server. In order to have a second port, you’d need to have a second instance of Virtualmin which isn’t possible.
Perhaps you can elaborate on why you think you need a second port…
Hi
I don’t need the second Virtualmin.
So I have - mydomain.com on port 80.
I need - new virtual server but i would like it woks on the same domain mydomain.com but on different port.
Sounds like he wants to run Discourse but he’s just now figuring out you can’t run it on anything but port 80 and you can’t run it on shared hosting. It has to be a dedicated port.
why don’t you ask Virtualmin about the same?
They use :10000 for virtualmin and :20000 for usermin.
Is it very unusual if I want the same for another my own tool?
I say that because I know a few people that tried to run it on shared hosting. There’s a lot of things like that you can’t do on a shared hosting program, that’s why he is asking and I too am curious as to why you would need to run a dedicated port for a website.
It is technically possible to run in s shared environment, and you could technically run Apache virtualhost on another port…
However this is a somewhat advanced topic, and while possible, would require some manual intervention which isn’t built into Virtualmin directly, though for part of it could be implemented via the core Webmin product.
That said, @Gomez_Adams isn’t completely off base in suggesting Discourse be run on a dedicated server/vps as it is a beast of it’s own.
So guys is it possible or not? Or if it is a problem for server maybe is it possible to redirect mydomain.com:13000 to specific folder in the current mydomain folder?
For example if I would like to organize this way the access to phpmyadmin.
Using a custom port for hosting a website is possible, but not through Virtualmin directly. You’d need to set it up quite manually through Webmin. This means setting up the Apache configure, user/group, home directory, etc.
Oh it sounds not too difficult but I thought it is possible to do via GUI… I did not want to change anything manually in configs to not break the web/virtualmins
The first idea was to setup phpmyadmin on the dedicated port and access to it via ssh tunnel…
Same like now my 10000 port is closed for public
There’s a lot of moving pieces with Virtualmin. Click create Virtual Server and it executes like 30 commands behind the scenes to get those pretty Virtual Servers from a concept to a reality.
You’d literally be doing all those tasks manually. Is that what you really want to be spending your time doing? Oh and you still haven’t really explained why you need this in the first place.
Virtualmin IS Shared hosting. You create multiple ‘VIRTUAL’ servers that all use the same main IP address and resources. You can put limits on those resources but that’s about it.
Hm… I know it
Sorry, but I really don’t understand how this relates to my question.
If it is not possible - ok, but tpnsolutions has already said - it is possible.