Subserver not working

Recently i have noticed that none of my subservers are working. At the moment it is setup as such


Subservers ( might look like a subserver but i have it as a normal server this is becuase it needed its own stuff as if it was a complete domain. The problem is that the 2 subservers just resolve to If i make the defualt for IP then all the domains will work correctly including the resolving of the

The only problem is that none of the other subservers will resolve, they just go to


can you explain what you mean with “resolve to”? It also helps verifying problems if you give the actual domain names instead of dummies. I imagine they’re not secret if you publicly serve them? :slight_smile:

Domains are:

Subservers are: (this is the defualt IP as well)

If you test and you will see that it loads correctly. If you browse to it loads correctly. But and any of subserver of will not load it will just go to

How ever if i make the subserver as a main server it will load but i want them as subservers not as there own server with there own accounts and such.

Okies, as expected all those domain names “resolve” (as in nameserver lookup) to the same IP address.

Does “secure” imply that you’re using SSL for that site?

If an Apache virtual host does not load but shows the default instead, it usually means that the vhost configuration is somehow wrong. When you go to Webmin -> Servers -> Apache Webserver, which vhosts does it show you and on which ports? Check the address, port, server name and document root there. You might also post a listing of the domain list here, enclosed in tags for better readability.

Yes they all resolve to the same IP this is correct. And yes it will be SSL but at the moment its is not whilst i try to get the subservers working correctly.

I have looked in the apache settings and all websites are confgigured to use port 80 and the correct ip address. I have tried removing the subserver and restarting apache multiple times and it will still not work.

I have noticed that if i make the main ip all subservers and the domains all stop working and just go to

The servers directory is also correct.

The hosts list looks okay, yeah. It’s quite odd, since whatever you set as “default server for this IP” should have no influence except when you request an unknown hostname.

Do you have any forwardings, redirections, proxying or similar in place? Can you check the Apache logfiles? Maybe those’ll give you some hints. Next step would be taking a look at the Apache config files.

I have enabled Website matches all sub-domains? on all the domains, but when i disable this it dosent seem to fix anythink.

The only errors in the apache logfiles is the ones relating to there being no favicon.ico or robots.txt.
There are no forwardings redirections or proxying being used which i no off. If there is then virtualmin has setup these its self.

I have gone through all the domains and cant see anythink.

Well, the “matches all sub-domains” definitely was a problem, since it will wildcard all subdomains to the one where you set that.

You may want to double-check that the feature is really turned off everywhere, that Apache is restarted and there’s no leftovers of that setting in the Apache config file.

Let me know if you can’t figure it out, then I’ll do some experiments what this feature effects in the config file, I haven’t used it myself so far. :slight_smile:

I have no disabled the matchesall sub-servers, i also checked through the DNS for left entries. And went through the apache entrys for each server. I removed all teh aliasserver *

I also noticed that there where a bunch of alias server lines with no text after them just blank. I remoebed these and saved it, restarted apache didnt work, restart server didnt work.

Also i want to make the main domain for the IP as well, but if i do it just wont let any domains or subservers such as work and will just load up

Okay… I’m afraid I’m a bit out of ideas here, short of taking a look at your Apache config files myself. I’m somewhat doubtful though that you’d want to give me the necessary access to your system. :slight_smile:

If i emailed you my httpd.conf could you look through it for possible errors?

I have tried nemerous things and just cant seem to get it working.

Thank you very much for your help “Locutus”, i have now managed to fix this problem. I dont no exactly what how i fixed it all i no is that i reapplied the “match all subservers rule” then manualy deleted it from the dns and httpd.conf and then it worked.

Instead of making a new post i will post the problem i am having now. My website runs on ip address, is it possible to have a subserver run on IP, i have made the subserver and specified the IP, it has made the apache settings and dns settings for it but it dosent work.

The reason for this is becuase i want the to have a ssl certificate.

Okay, good the one thing is resolved. :slight_smile:

As for your new problem: What exactly “does not work”? Can you elaborate please what you did and what happened? In general it’s sure possible to operate a sub-server on a different IP address.

My main domain uses ip address

I want to create a subserver ( which operates on ip address

I have created the subserver which you can browse to by going to

But if you try browsing to it just loads

I have checked and “” does resolve to

Actually, for me the IP address with .161 in the end, and show the same thing: a directory index with “awstats_icon” and “icon” subdirectories (probably links), while “” shows a web page with “Shane Rutter - PHP Programmer”.

So, from my end, it seems to be working as intended.

Umm tried restarting my pc, refreshing my internet and clearing all cache files. Maby my ISP’s DNS servers havent updated correctly yet or somthink?

Thank you for your help, probebly would have still been stuck.

Not yet updated DNS servers is a possible reason, yeah. Every entry has a time-to-live. I tend to set those to 30 seconds when I’m in an experimentation phase. :slight_smile: