Hello Friends,
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...
Thanks in advance andre
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.
hope that helps a bit
Sorry,
I guess the image tags didn't worked, let me try with text:
This is ifconfig:
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:40362117 errors:0 dropped:0 overruns:0 frame:0
TX packets:1212172751 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2378877995 (2.2 GiB) TX bytes:2415311012 (2.2 GiB)
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:159022 errors:0 dropped:0 overruns:0 frame:0
TX packets:127578 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:149256439 (142.3 MiB) TX bytes:38410350 (36.6 MiB)
venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:69.73.133.209 P-t-P:69.73.133.209 Bcast:69.73.133.209 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
venet0:1 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:69.73.133.210 P-t-P:69.73.133.210 Bcast:69.73.133.210 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
venet0:2 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:69.73.133.211 P-t-P:69.73.133.211 Bcast:69.73.133.211 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
When I add venet0 as my network interface to VirtualMin, it lists venet0 as being 127.0.0.1 and the others adapters with the correct IP.
In the module configuration my settings are all automatic except the 'network interface for virtual address' which is set to venet0.
can someone help?
Andre
the venet0 should not be on 127.0.0.1 and the netmask and broadcast do not look correct either
I think you want to start with that first
You definitely don't want 127.0.0.1 as the IP for <i>anything</i> 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.
--
Check out the forum guidelines!
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.
--
Check out the forum guidelines!
Hello Friends,
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.
This is from the Network Interfaces screen:
[img size=01-350]http://andregarzia.com/SafariSnapz004.png[/img]
This is what I see when I do an ifconfig:
[img size=01-350]http://andregarzia.com/TerminalSnapz001.png[/img]
In the module Config screen, the options are:
[img size=01-350]http://andregarzia.com/SafariSnapz001.png[/img]
Now, just to show two examples, these are the screens for both the andregarzia.com and the cando.andregarzia.com domains:
[img size=01-350]http://andregarzia.com/SafariSnapz002.png[/img]
[img size=01-350]http://andregarzia.com/SafariSnapz003.png[/img]