LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-26-2012, 08:49 AM   #1
Spuddy
Member
 
Registered: Jul 2010
Posts: 83

Rep: Reputation: 15
Question Debian/Apache/Webmin issue.


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?
Attached Images
File Type: jpg temp-webmin.jpg (148.0 KB, 2 views)
 
Old 03-26-2012, 09:46 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,372

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
To me, it sounds like you need to add ServerAlias directives for the non-www names to each vhost.
 
1 members found this post helpful.
Old 03-26-2012, 09:59 AM   #3
Spuddy
Member
 
Registered: Jul 2010
Posts: 83

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by acid_kewpie View Post
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,
 
  


Reply

Tags
apache, debian, linux, webmin


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setup Apache so Webmin can be accessed like abc.com/webmin instead of abc.com:10000 rtoney5 Linux - Software 6 04-08-2010 12:33 PM
webmin issue, poss security issue bejiita Slackware 3 11-03-2004 06:07 AM
Quota / Webmin Issue lunardreamr Fedora 0 10-31-2004 01:33 PM


All times are GMT -5. The time now is 09:01 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration