can't make multiple domains use the right host

5 posts / 0 new
Last post
#1 Thu, 03/26/2009 - 12:54
midol

can't make multiple domains use the right host

Hi,

I recently had a request to add a new pair of domain names as synonyms for an existing domain. Whois shows they were pointed to the right IP address, but pinging did nothing. I then logged in to VM GPL as root, selected the destination site, and used Services and Configure Website and Networking and Addresses and in alternate virtual server names added the two new domain names. Now pinging works but the browser picks up the first-configured vhost in the conf file rather than the correct site. Do I need to restart apache? or what? also where is this option documented, I'd read up on it if I could.

Dave

Thu, 03/26/2009 - 13:33
Joe
Joe's picture

See the Troubleshooting Common Problems guide in the documentation. Specifically, the section entitled "The Wrong Site Shows Up".

http://www.virtualmin.com/component/option,com_openwiki/Itemid,48/id,tro...

In short, you've got some misconfiguration in the VirtualHost or NameVirtualHost sections, possibly due to a misconfiguration in Virtualmin, or possibly due to previously existing configuration in Apache.

--

Check out the forum guidelines!

Thu, 03/26/2009 - 17:13 (Reply to #2)
midol

Thanks Joe, I've got it, both the doc and the fix, things resolve nicely now.

Dave

Thu, 10/21/2010 - 18:44 (Reply to #3)
whippy

The above link is dead so I can't check it out.

I added two alternate domain synonyms in "alternate virtual server names" under "Networking and Addresses" but they do not appear as "ServerAlias" entries in the site configuration file and don't appear to be working.

BTW - it would be good to tidy up the layout so that the entry box is put below the label and made about twice as wide so that most virtual server names will fit comfortably on a single line.

Thu, 10/21/2010 - 18:59
Locutus

They should appear as ServerAlias... They do that correctly for me here. What's the path to the Apache site config file as given by the Edit directives function? Did you check the contents of the site file before and after you added the alternate server names?

Topic locked