I’m really stuck on this one - I suspect I’m missing something simple…
I have two servers running Virtualmin: one that sits nicely inside a commercial VPS and works exactly how I want it to - its brilliant - thankyou Virtualmin, the other I decided to set up last week on an old computer at home since the one on the VPS works so well. I set up both from vanilla installs of ubuntu 12.04 server but I just cannot get the home server to display virtual host content despite it sitting there plain as day in /home/*/public_html/
All I get is the default “It Works” page. I can’t seem to get any directory aliases working and even the script installation of phpmyadmin results in a 404 not found response.
Since I set both up in the first place using the install script I suspect the issue centres around networking (?) because I don’t recall sorting out /etc/hosts and /etc/network/interface to get the FQDN set up for the VPS; I expect that was taken care of by my hosting company behind the scenes(?)
I’ve tried working through all the howtos and guides I can find but I seem to be going over my same footsteps now. As things stand I have my server tucked away behind NAT and with my router forwarding all typical ports. Virtualmin itself seems to be installed fine and hostname -f returns a FQDN.
The non IPv6 parts of /etc/hosts looks like:
127.0.0.1 localhost
192.168.x.x name.example.com name
Whilst /etc/networl/interface is like:
auto eth0
iface eth0 inet static
address 192.168.x.x
netmask 255.255.255.0
network 192.168.x.0
broadcast 192.168.x.255
gateway 192.168.x.1
dns-domain name.example.com
dns-nameservers 8.8.8.8 8.8.4.4 127.0.0.1
Apart from that, I don’t think I’ve changed anything in virtualmin. All help and suggestions gratefully received