First of all, let me say that VirtualMin Rocks! I’ve used cPanel and Plesk and must say that every second spent inside virtualmin makes me want to send a box of chocolate for the virtualmin crew for a job well done.
I’ve just bought VirtualMin pro and installed it in my VPS (at JaguarPC.Com). There were some hiccups during the installation, mostly mysql wanting a root password and virtualmin not detecting my ethernet adapter.
The point is, it is a VPS so the eth adapter is a virtual one, I don’t know what virtualization solution jag uses, but after setting the configuration to venet0, virtualmin picked everything.
JaguarPC uses virtuozzo to allow me to manage my VPS (reboots and the like) and I use GoDaddys own nameserver thingy to host my domains.
I created a domain ‘andregarzia.com’ and updated godaddy dns records to point to the IP, this appears to be working.
Then I created a subdomain ‘cando.andregarzia.com’ and virtualmin provided me with the following ip options shared on 127.0.0.1 or allowed me to specify an IP. If I tried setting it to the same IP and ‘andregarzia.com’ VirtualMin complains that the IP is being used. If I set it as shared on 127.0.0.1, then everything works except the fact that when I try to access it, it fails. I set the A dns record in godaddy to make ‘cando.andregarzia.com’ point to the same IP as ‘andregarzia.com’, so when I try to access cando.andregarzia.com, I end up in the parent server? Isn’t Apache suppose to handle multihosted domains?
Can someone give me a clue how to use a single IP for multiple hosts? Is VirtualMin picking my virtual adapter right, I see my ips listed on webmin network adapters…
I have no experience with virtuozzo and VPS however shared on 127.0.0.1 doesn’t sound good to me.
under webmin-networking-network configuration- make sure you have the correct settings mainly in hostadress.
you need the IP of the server and all domains will use that shared IP
so it will look something like:
127.0.0.1 localhost.localdomain , localhost
server.IP.goes.here my.serverhostname.com , my
also you need BIND on the system and subdomains are created by using sub-server and in the upper textfield fill in the cando.andregarzia.com
the reason the install complained about mysql root is that virtualmin can’t get it due to different encryption. The warning tells you that you need to set one for root.
You definitely don’t want 127.0.0.1 as the IP for anything in Virtualmin.
Look in Module Configuration for these options:
Network interface for virtual addresses
Default virtual server IP address
Default IP address for DNS records
I don’t know which of these you’ll need–as it depends on whether your IP is a publicly routable IP, or a private one. But 127.0.0.1 is definitely not the one you want.
Once you have that right, just make sure you don’t turn on IP-based virtual FTP or SSL for more than one of your virtual hosts (as both of those require an IP per additional host), and you can put as many hosts as you want on a single IP.
Actually, I misspoke slightly. You can’t use IP-based virtual FTP, at all, if you only have one IP, as it’ll conflict with regular FTP. But you can have one (and only one) SSL host if you have a single IP address.
thanks all for the replies. My problem persists somehow. Some machines are able to see my new domains but others don’t, which is strange, I’ve set the DNS more than 30 hrs ago.
I edited the httpd.conf manually and set a name based virtual host for the cando.andregarzia.com domain, this appears to work but still, this is a hack, I should be able to do this from inside VirtualMin.
I think VirtualMin is not picking my virtual network interfaces right.