Problem setting Virtualmin

PROBLEM 1:
The webroot is ‘/var/www/index.html’ and not ‘/home/user/public_html’

SOLUTION 1:
Edit ‘/etc/apache2/sites-available/default’, ‘/etc/apache2/sites-available/default-ssl’ and ‘/etc/apache2/sites-available/user.ws.site.com.conf’

PROBLEM 2:
I haven’t Internet, the forwarders isn’t working

DETAILS 2-1:

Network > IP: 10.168.0.17; Mask: 255.255.255.0; Route: 10.168.0.98; DNS: 127.0.0.1

/etc/hostname > user

/etc/resolv.conf > nameserver 127.0.0.1

/etc/hosts > 127.0.0.1 localhost; 127.0.1.1 user.ws.site.com user; 127.0.1.1 user.ws.site.com

/etc/bind/named.conf.options > forwarders { 10.168.0.98; 10.168.0.99; };

DETAILS 2-2:

If I delete the line ‘forwarders’ from ‘named.conf.options’, and I add the first IP to DNS network’s configuration all work, but I need the forwarders…

What’s wrong? What can I do?

PD: Sorry for my bad Spanglish

man, you should use nameservers that point to a IP address.
If you use user.ws.site.com that must point to an IP address:
user.ws.site.com = IP (125.124.201.123
You can check that in http://www.dnswatch.info/
http://www.dnswatch.info/dns/dnslookup?la=en&host=ns3.spatiul.ro&type=A&submit=Resolve

Thanks! Where have I to configure that? In ‘/etc/hosts’?

127.0.0.1 user.ws.site.com ?

The Ubuntu installed should have asked you what your IP address and that of your default gateway and nameserver is – except it used DHCP to discover that. In any case, the configuration for the local resolver is in /etc/resolv.conf. Make sure you have an IP address in there that points to your nameserver.

The Virtualmin installer will add 127.0.0.1 as nameserver, since it installs BIND which the local system also uses as resolver. Check if that is done and correct.

  1. In ‘/etc/resolv.conf’ I have ‘nameserver 127.0.0.1’. Is this ok?

  2. I saw that the webroot isn’t ‘/home/user/public_html’ (now is ‘/var/www/index.html’). Why?

  3. I just edit the first post with more information…

Did you use the Virtualmin installer script on a fresh and “blank” Ubuntu? You should not install any other packages besides SSH when setting up Ubuntu, and let the installer do the rest.

Thanks for your answers!

I just install Ubuntu (erasing the entire disk) and later I install Virtualmin with the SH script. What I saw is that Virtualmin have updates from Ubuntu before installing Virtualmin. Something it’s wrong…

I deleted the line (added by me) ‘forwarders { 10.168.0.98; 10.168.0.99; };’ from ‘/etc/bind/named.conf.options’ and added the first in DNS network’s configuration > DNS: 127.0.0.1, 10.168.0.98. And it works, but I need the forwarders to add more IPs…

What can I do? For more information I just edit the first post…

PD: Sorry again for my Spanglish

I could solve the problem. Thank you very much for your responses!