LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-25-2005, 03:23 PM   #1
copatlarge
LQ Newbie
 
Registered: Sep 2005
Location: Missouri
Posts: 2

Rep: Reputation: 0
Problems with Vhosts.conf file and websites


I have linux mandrake 10 installed along with apache, squirrel mail, spamassasin etc.

i am trying to host 2 different websites on same machine, (eventually more).

when i type in domain1 address it goes to the correct page. but when i type in domain2 it goes to domain1 as well. and they are two totaly different websites.

also changed the mail directory so i could go to domain1/mail and end up at the mail login page, it's not working either,

any ideas?

thanks
 
Old 09-25-2005, 04:15 PM   #2
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 528

Rep: Reputation: 78
Your problem come from the IP of your web site (usualy a domain name is translated to an ID address ie: the site usr.com as the ip address 64.39.28.52)
so the same ip can host 2 diffrent domain name on the same port.

The solution to host 2 domain name with only one IP address is to change the port of the second web site (insted port: 80 "the default one" put 1000 for exemple) so after to connect to your site you'll have to type some thing like this:
www.domain1.com (to access to your domain1)
and
www.domain2.com:1000 (to access to your domain2)

The inconvenient of this, is, if you type www.domain1:1000 you will arrive on your second web site. but as far as i know it's the only solution.
I hope this will help.

PS: if some one as a better idea i'm intrested as well.

Last edited by angel115; 09-25-2005 at 04:24 PM.
 
Old 09-25-2005, 04:30 PM   #3
copatlarge
LQ Newbie
 
Registered: Sep 2005
Location: Missouri
Posts: 2

Original Poster
Rep: Reputation: 0
Tried that

I tried that using different porst for the second site,
didnt work, same thing..
 
Old 09-25-2005, 05:02 PM   #4
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 528

Rep: Reputation: 78
I've just check on internet and it seems i was wrong. It's possible to host 2 or more domain name on the same IP but you have to create a DNS server on the computer who host your sites.

I don't know how to do it, but you will probably find some site who explain how to set it up on the net.

Good luck.
Keep me inform if you get it running.


Last edited by angel115; 09-25-2005 at 05:32 PM.
 
  


Reply


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
Problems with the named.conf-file configuration dmarkic Linux - Networking 3 07-07-2005 11:07 AM
Problems Adding Directives to the httpd.conf file kaplan71 Linux - Software 1 03-25-2005 08:56 AM
multiple file upload for websites? sohmc Linux - Networking 4 02-23-2005 08:43 AM
saving changes to apache2/conf/httpd.conf file Zaius Linux - Newbie 6 01-10-2004 12:45 AM
.conf file problems notsoevil Linux From Scratch 1 02-20-2002 12:12 AM


All times are GMT -5. The time now is 08:38 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration