Setting the default virtual server for reverse dns AND virtualmin port 10000 access

6 posts / 0 new
Last post
#1 Wed, 11/09/2011 - 12:04
kpence73

Setting the default virtual server for reverse dns AND virtualmin port 10000 access

Ok, I have 3 virtual servers on the same IP (domain1.com, domain2.com, and domain3.com). They all work fine. I access Virtualmin/Webmin via https://11.11.11.11:10000 and all is great. I then decided two days ago to set my reverse dns through my VPS manager (not virtualmin). I pointed it at domain1.com. I have confirmed with my VPS host (Linode) that the reverse dns is in fact resolving to domain1.com. However, now https://11.11.11.11:10000 no longer works. So I tried https://domain1.com:10000, which did work a couple of days ago, now it does not work. So, I decided to try http://11.11.11.11 and low and behold it went to domain2.com. I asked my VPS host (Linode) about this and they said that the reverse dns only works to resolve back the IP address to a domain name, but it won't necessarily take you to that domain if you use the IP. I was told this had to be a setting somewhere in Virtualmin/Webmin that when I use the IP address, Webmin is handing off my request to domain2 instead of domain1. So while having the conversation with the tech, I decided to check https://domain2.com:10000 and it worked. I got right to my Virtualmin login.

How do I set it so that domain1.com:10000 works again and 11.11.11.11:10000 for that matter? Also how do I set it so that when I use the IP as the URL, I get to domain1 instead of domain2.

I can tell you that domain2 is listed in the virtual server's list 1st and domain1 is last, but I assumed it was listing them alphabetically (domain2 starts with "c" and domain1 starts with "s")

Wed, 11/09/2011 - 13:07
andreychek

Hmm, Webmin/Virtualmin should work just fine when accessing it via any domain name or IP address -- it shouldn't be redirecting to a different domain, nor should the reverse DNS matter.

When you access port 10000, are you certain that you're using "https" rather than just "http"?

-Eric

Wed, 11/09/2011 - 15:33 (Reply to #2)
kpence73

Yes, I am using https.

I don't think it is a coincidence that when I use the IP it takes me to domain2 and domain2 is the only one I can get to access virtualmin. I just don't see anywhere that domain2 is set as some sort of default.

Wed, 11/09/2011 - 16:08
andreychek

One thing you could do is check System Settings -> Virtualmin Config -> Server Settings -- I'm curious what "Virtualmin URL for use in email messages" is set to.

-Eric

Wed, 11/09/2011 - 17:09 (Reply to #4)
kpence73

It is selected for "work out automatically"

Sat, 11/12/2011 - 20:02
kpence73

The 10000 is working at home for all 3 domains, but not at work for of my domains..only one of them is accessible at work. Any thoughts????

Topic locked