I have setup an instance and have been struggling to get my workloads to work on AWS.
I have setup Virtualmin/Webmin on an Ubuntu 18 instance and login via shell with route 53, Natgateway and routes on a fully working webserver and architecture setup. I can login to Virtualmin, commissioned via marketplace on port 10000 for the virtual server.
I have one domain, mymall.click as a virtual server running on virtualmin setup when the first installation was done via shell. Everything works fine, but when I add a second domain, mymalltravel.click I cannot access the website via a browser window. I keep getting “Site not reachable”. I checked /etc/apache2/sites-available and everything automatically setup looks ok. Even to login on new virtual server ip-address:10000, it does not login.
Any help would be greatly appreciated. I really need to get all my other workloads on vertualmin working as I like the inter face.
I’ve used Cpanel on a pre-built platform and setting up a new domain is easy. I installed this via shell from an online guide.
My question is that if the DNS is different for another domain, should it stop it from being reachable because I plan to host other client’s websites through virtualmin and create more virtual servers pointing to different ip addresses respectively?
Yes I saw that AWS Route 53 defines its own DNS records. Thank you for clarifying that. I was getting a little worried.
On the cloud front, I had created an EC2 instance and mymall.click domain on AWS uses an elastic ip of x.x.x.202, while mymalltravel.click uses elastic ip x.x.x.222. Both these elastic addresses are assigned to my instance which virtualmin was using to create virtual servers. mymalltravel.click has its DNS records resolving well using elastic ip x.x.x.222. So if i’m getting you correctly, you are saying both domains should point to same elastic ip to work?
Hm, if both those addresses are also configured in Virtualmin I think it should be ok.
But I don’t know much more about how AWS works, and if you’d actually need two addresses, as it’s much easier to work with just one.
Ok, maybe let me try your option using one. Even when I followed the guide for setting up a new virtual server on Virtualmin, the steps are pretty basic. I just can’t see where I’m going wrong for it not to show. I deleted the server and recreated it through Webmin as well, still no luck.I’ve checked /etc/hosts, file permissions and ownership. I’ve added a custom port for the one virtual server to listen to. All bring me to site unreachable page. The only error log I got was something like GET HTTP01 200 “webmin” before I deleted the server. I don’t know if this will help.
Thanks a lot kdmiller45 and Joe. Will keep that noted and I have made the ip changes as per your suggestions.
@toreskev and @kdmiller45 after changing my ip addresses to the same as for both domains, now the other site is now reachable, but it’s showing the content for my main domain, mymall.click not what is uploaded in the public_html folder of mymalltravel.click.
I also checked the /etc/apache2/sites-available and checked the mymalltravel.click.conf file and the document root path is correct pointing to DocumentRoot /home/mymalltravel/public_html. I wonder what’s causing it to ignore the document root?
I managed to set one ip address for all virtual servers. However, the second virtual server is failing to issue a Let’sencrypt certificate validation complaining of timeout.
I’ve also noticed the default ssl.conf file in the /etc/apache2/sites-enabled/ has a virtualhost pointing to the primary domain. Could this be causing the second virtual-server to display the primary virtual server content? How can i fix that virtual servers displays content on defined in document root. When I disable it, apache fails to load.
I’ve also checked ufw, is active, ports 80 and 443 are open, my route 53 has the txt file for the acme challenge. What could be causing the timeout as there is no firewall?