LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Debian/Apache/Webmin issue. (http://www.linuxquestions.org/questions/linux-server-73/debian-apache-webmin-issue-936492/)

Spuddy 03-26-2012 08:49 AM

Debian/Apache/Webmin issue.
 
1 Attachment(s)
Hello,

Wonder if you can help. I am running a Debian 5.0 (Linux 2.6.32.24 on x86_64) webserver and hosting multiple websites for our company.

We currently have three seperate domains/seperate websites. My problem is that if I leave www. off of the beginning of domainb.com or domainc.com it shows the content from the domaina.com directory.

www.domainb.com - shows correct information (website)
domainb.com - shows incorrect information (website for domaina.com)
www.domainc.com - shows correct information (website)
domainc.com - shows incorrect information (website for domaina.com)

Any ideas?

acid_kewpie 03-26-2012 09:46 AM

To me, it sounds like you need to add ServerAlias directives for the non-www names to each vhost.

Spuddy 03-26-2012 09:59 AM

Quote:

Originally Posted by acid_kewpie (Post 4636613)
To me, it sounds like you need to add ServerAlias directives for the non-www names to each vhost.

That did the trick. Thank you sir.

Regards,


All times are GMT -5. The time now is 08:00 AM.