Due to some issues with my server where I am hosting a clients website, I have decided to reinstall the OS and virtualmin on my ubuntu VPS.
Things went smoothly, Virtualmin set up etc. But DNS is giving issues.
If I go to clientswebsite.com:10000, virtualmin loads correctly.
If I go to clientswebsite.com, I get 403 forbidden error.
If I go to the IP of my clients website directly, I get the apache start page.
I am really confused because how could the domain work for virtualmin but not the virtual server itself?
I’m assuming this is some sort of DNS issue but i have not been able to resolve it, any help would be appreciated!
(Also, FTP is not starting up properly, I am assuming it is becuase of this issue. I will troubleshoot that after if it still persists.)
How can I try to put a website there? I am not even able to connect through FTP. FTP server will not start and has an error: “unable to determine ip address of clientwebsite”.
I am attempting to reinstall again, hoping for better luck this time.
Regarding the DNS, if I want both the admin panel and the site itself to be at clientswebsite.com, what settings should I have in the DNS?
When installing, Virtualmin setup asks for the primary nameserver. Should I be using clientswebsite.com here?
Also, where in Virtualmin exactly should I be looking for the configuration for the virtual servers DNS itself, rather than the Virtualmin panel’s?
So I reinstalled and attempted again, and this time if i go to clientswebsite.com, it gives the default apache page.
If I go to the IP, it gives me default apache page.
FTP is working, but when i upload something to public html it does not appear!
So it seems this is just the default apache page for the site itself ,and not the virtual server…
I’m not sure what is going on. I made instructions on how to use webmin incase I forgot and have done it around 10 different times. All of a sudden this time I am having DNS issues and inconsistent results each reinstall?
Not sure what to do… All I want is to install Virtualmin on my machine with subdomains working properly… Spend 7 hours on this so far today with no luck at all… No idea what to do, the DNS for virtuals just is simply not working…
That link was the first place I checked, didn’t help though.
I’m not sure what I did but I got the domain working properly, but now the server isn’t able to resolve external IP addresses anymore…
Going to reinstall yet another time.
Could anyone just give some basic advice on the most straight forward way I should be able to get things working properly with the panel & virtual server on the same domain?
My process I had used in the past:was simply installing ubuntu, updating etc, installing virtualmin, host name with the domain name for the panel (which will be same domain URL as the virtual), updating virtualmin packages, create virtual server for the domain name, and at that point testing servers.
There’s no need to reinstall, that’ll just make this more difficult to resolve – I’d instead recommend troubleshooting the specific issue you’re seeing.
It’s likely a simple thing, but until we figure out what isn’t working, you may just keep running into the same issue, whether you reinstall or not.
It may just be that BIND isn’t running for some reason. Or the nameservers were somehow changed. Both of those are simple fixes though – take a look at your /etc/resolv.conf, what is in that file?
Eric, it seems you are the only person responding here, so I really appreciate your responses. Thanks so much for your assistance and time, I hope you can help me resolve this.
Okay well I already did the reinstall, but here is a direct walkthrough of my configuration:
I also temporarily disabled SSL until I can get this working. Only other change I did.
Right now the status of the server:
Going to IP directly: Apache default page.
Going to clientsDomain.com: forbidden: you do not have permission to access / on this server.
Going to clientsDomain:10000: virtualmin panel.
Problems right now:
FTP server is not starting. It gives the following error:
Failed to start service :
Starting ftp server proftpd
2015-03-16 08:04:53,215 clientsDomain proftpd[4559]: warning: unable to determine IP address of 'clientsDomain ’
2015-03-16 08:04:53,215 clientsDomain proftpd[4559]: error: no valid servers configured
2015-03-16 08:04:53,215 clientsDomain proftpd[4559]: Fatal: error processing configuration file ‘/etc/proftpd/proftpd.conf’
…fail!
I do not know if the virtual server is working properly, as I can not upload on to it through FTP to make any files public to the browser, so I do not know how to test this.
I need SSL to be working on both the admin panel and virtual server.
Any advice on this would be appreciated! Thank you
Replying to myself… In some experimenting i noticed my hosts file was missing the path… I added the data correctly and things seem to be working so far.
Sorry for all the trouble over such a simple solution!
Thanks again for your attempts to help Eric. Hopefully all goes smooth from here!
Nope. Only other thing it mentions is something along the lines of “do not edit this file by hand as changes will be overwritten”… I’m assuming that is from webmin or virtualmin considering i do not have anything else installed yet.
Any ideas on how to fix this? I’m not sure the best road to repairing this. Shouldn’t it be fairly easy to let it know an IP for dns lookup? Or do I have to do DNS through my domain or…?
Could it be my domain itself that is not setup correctly? I just checked the configuration and it is only pointing “@” to the IP of the server.
Also, I do not believe I entered the nameservers of the domain anywhere in virtualmin? I do not think it ever asked for them, it only asked for the host name & domain I believe. is there a place I am supposed to configure and list the address of the nameserver’s listed for the domain I am using?