Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 20th May 2008, 17:53
mick02 mick02 is offline
Junior Member
 
Join Date: May 2008
Posts: 19
Thanks: 0
Thanked 1 Time in 1 Post
Default Hosting multiple Websites on my server

Hey folks,

Apologies if this has already been answered but I've implemented some of the suggestions from previous posts but I'm still unsure of how to solve my issue.

The problem is that I am hosting 3 different websites. Each of these sites has been registered by the website owners and have their own DNS setups which I have redirected to point to my server.

The problem I'm having is that when I type in www.website1.com I'm redirected to the "This is a shared IP page" instead of the page www.website1.com that I have set up in ISPConfig.

I've checked the VHosts file and there is a new entry created for each site.

What I'm trying to do is make it so when the URL's are typed that they are brought directly to the site that was created usin ISPConfig instead of the Shared IP page.

Can anyone help me with this?

I've posted the results of httpd -t below

Code:
root@raider:/var/www/web5# httpd -t
httpd: Could not determine the server's fully qualified domain name, using 192.168.1.10 for ServerName
Syntax OK
Thanks in advance,

Mick
Reply With Quote
Sponsored Links
  #2  
Old 20th May 2008, 18:04
mick02 mick02 is offline
Junior Member
 
Join Date: May 2008
Posts: 19
Thanks: 0
Thanked 1 Time in 1 Post
Default

A quick update to my posr above. I want to hoat different websites with different domains i.e. www.website1.com, www.anothersite.com and www.thirdsite.com, setting up subdomains is not an option for me unfortunately. Once again, thanks in advance for any help.

Mick
Reply With Quote
  #3  
Old 20th May 2008, 18:20
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,419
Thanks: 834
Thanked 5,498 Times in 4,328 Posts
Default

Quote:
Originally Posted by mick02
A quick update to my posr above. I want to hoat different websites with different domains i.e. www.website1.com, www.anothersite.com and www.thirdsite.com, setting up subdomains is not an option for me unfortunately. Once again, thanks in advance for any help.

Mick
Just create a new webiste for each domain.

http://www.howtoforge.com/ispconfig-2.x-first-steps

The shared IP error is explained in this guide too.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 20th May 2008, 19:23
mick02 mick02 is offline
Junior Member
 
Join Date: May 2008
Posts: 19
Thanks: 0
Thanked 1 Time in 1 Post
Default

I've created a new website for each domain but the problem is that when I type that domain in from a PC outside my LAN then they get the "shared ip" page. I've followed the configuration to the letter but it still doesn't seem to make any difference.
The problem that I seem to have is that when their DNS passes the request to my webserver then the webserver doesn't know which page to redirect the browser to.
Reply With Quote
  #5  
Old 20th May 2008, 21:35
vogelor vogelor is offline
ISPConfig Developer
 
Join Date: Jan 2007
Location: Wernau, Germany
Posts: 219
Thanks: 42
Thanked 34 Times in 24 Posts
Default

i think, the problem you have is the DNS. your server must have the same IP, the DNS returns.

For example: if the DNS returns 123.123.123.1 as result of www.yourdomain1.com your server must have this IP as IP of the web www.yourdomain1.com and so on.

This means you can use "external" DNS (i am using externat DNS too), but the external DNS mus "point" exactly to your IP

Hope, this helps...
__________________
Der neue Luxus heißt Zeit, nicht Geld!

Firma : http://www.muv.com, http://www.computerandservice.de
Privat : http://www.vogelor.de
Reply With Quote
  #6  
Old 21st May 2008, 10:26
mick02 mick02 is offline
Junior Member
 
Join Date: May 2008
Posts: 19
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hey guys,

I figured out the problem that I was having. The DNS servers that the domains were registered under needed to have an A record added pointing to my server. Once that was done ISPConfig worked like a charm.

Thanks to all of you that replied.

Mick
Reply With Quote
  #7  
Old 21st May 2008, 10:31
vogelor vogelor is offline
ISPConfig Developer
 
Join Date: Jan 2007
Location: Wernau, Germany
Posts: 219
Thanks: 42
Thanked 34 Times in 24 Posts
Default

Quote:
Originally Posted by mick02
Hey guys,

I figured out the problem that I was having. The DNS servers that the domains were registered under needed to have an A record added pointing to my server. Once that was done ISPConfig worked like a charm.

Thanks to all of you that replied.

Mick
that's what i said ;-)
__________________
Der neue Luxus heißt Zeit, nicht Geld!

Firma : http://www.muv.com, http://www.computerandservice.de
Privat : http://www.vogelor.de
Reply With Quote
  #8  
Old 21st May 2008, 10:35
mick02 mick02 is offline
Junior Member
 
Join Date: May 2008
Posts: 19
Thanks: 0
Thanked 1 Time in 1 Post
 
Default

Sorry, I should have read your post properly before posting my reply!!!

Cheers though at least that's another hurdle cleared!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reciving mail problem kaliszakpl Installation/Configuration 1 18th March 2008 10:15
Can't start apache Musty Server Operation 12 9th March 2008 13:58
mail delivered in mbox patfee Installation/Configuration 8 11th December 2007 13:58
DNS server ON DYNAMIC IP for hosting rayman Server Operation 4 25th September 2006 13:01
Email - Ueb-Miau mazhar Installation/Configuration 5 21st December 2005 10:01


All times are GMT +2. The time now is 17:25.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.