Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

What is wrong with my apache2 config?

Ok lets say i have 10 websites at:

www/site2, site3, etc

All the sites are subdomains. ie site2.mydomain.com etc.

And all are working fine.

Now when i add the main domain ie mydomain.com in site1 directory none of the sites work and instead are redirected to site1 where my main site is?

Any help appreciated thanks.

using ubuntu server and apache2

1 Answer

Relevance
  • Anonymous
    9 years ago
    Favorite Answer

    Are you using vhosts and is it configured correctly?

    This should help: http://www.thegeekstuff.com/2011/07/apache-virtual...

    Also, how have you set up the sub-domains? And how have you set up your main domain name, i.e. are you running a nameserver or have you simply set your domain name to your ip address?

Still have questions? Get your answers by asking now.