8 posts / 0 new
Last post
#1 Wed, 10/02/2019 - 07:11


Hi all,

I am trying to setup virtualmin for intranet.

This server is not connected to the internet. What I want to achieve, create in virtualmin several servers like: virtualserver1.intranet, virtualserver2.intranet, virtualserver3.intranet etc. and access these of course by the browser in our local network. If I need to use another port than 80, no problem.

But I cannot get it to work. I can only access the webmin portal on https:// IP:10000 and Apache2 Ubuntu Default Page on http ://IP

I have no access to the router, so hoping this is not a problem.

Hope the community can help me.


Wed, 10/02/2019 - 08:15

If you're trying to use hostnames instead of IP's then something has to do that translation. Either the hostnames have to be assigned to IPs in the router or you can put hostnames and IPs in /etc/hosts file on every linux vps. And you will have to update every host file anytime you want to add/change things. But you can setup a cron job to copy the hosts files from say the main vps to all the others.

So edit /etc/hosts and list ip (space) hostname. virtualserver1.intranet virtualserver2.intranet

All machines will need the same info in their own hosts files, as the host file is only used by that local machine.

Wed, 10/02/2019 - 21:02

or, just set up an internal DNS zone that resolves your intranet names to internal IPs. If you are not running your own DNS server for your internal computers, you will need to.

Thu, 10/03/2019 - 03:46

Thank you for your reply,

@scotwnw, I think I was not clear enough or I do not understand your solution for the full 100%. We only have one (dedicated) server that runs Virtualmin, so this server has only one IP address. Edit hosts files on each client machine is not what we want, if there is another way. If we create a new virtual server in Virtualmin, it shares the servers IP address. Lets say, So I have to setup the DNS server in Webmin and that is where I get stuck.

@noisemarine, This is what I am trying to setup in BIND, but till now without luck. Webmin complaints the zone file already exists.

Thu, 10/03/2019 - 08:24

Sorry, ignore my answer. I misread your post and was thinking of VPS (multiple servers) instead of virtualmin with multiple sites.

Thu, 10/03/2019 - 10:03 (Reply to #5)

Hi scotwnw, no problem. thanks for your effort trying to help me

Thu, 10/03/2019 - 12:09 (Reply to #6)

Hey Scotwnw, I had a similiar question here https://www.virtualmin.com/node/67352 if you wouldn't mind checking it up for me. Thanks

Tue, 10/15/2019 - 15:30
unborn's picture

@aj2 virtualserver1.intranet and virtualserver2.intranet in your hosts file if intranet domains are hosted on same server. If you want to access it from all computers on your lan network then you will have to use router/switch which would let you setup this manually in its backend or simply you can use netmasq on linux machine acting like router.. and then will automatically use those records on anything connected to it just for those domains, rest will be send out as normally

Configuring/troubleshooting Debian servers is always great fun

Topic locked