These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Intranet on the new forum.
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.
thanks
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.
192.168.1.100 virtualserver1.intranet
192.168.1.120 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.
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.
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, 192.168.1.100. 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.
Sorry, ignore my answer. I misread your post and was thinking of VPS (multiple servers) instead of virtualmin with multiple sites.
Hi scotwnw, no problem. thanks for your effort trying to help me
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
@aj2
192.168.1.100 virtualserver1.intranet and 192.168.1.100 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