Jump to content



Photo

Hosting Multiple sites on 1 server


  • Please log in to reply
7 replies to this topic

#1 Raffye.Memon

Raffye.Memon

    KaRaCh|K|nG555

  • Joined: 16-September 05
  • Location: .::PakIsTan::.

Posted 01 October 2012 - 14:36

Hello,
I have been hosting my Wordpress site from my own local server. using www.ABC.com. but now i would like to host another site with new domain www.xyz.com on same server i have created site just fine using port 90 as 80 was in use by previous site. how can i forward www.xyz.com to this 90 port of my site.


or iam doing it all wrong by hosting site on port 90

Can someone please help.

Regards


#2 Haggis

Haggis

    Neowinian Senior

  • Tech Issues Solved: 7
  • Joined: 13-June 07
  • Location: Near Stirling, Scotland
  • OS: Debian 7
  • Phone: Samsung Galaxy S3 LTE (i9305)

Posted 01 October 2012 - 15:10

i assume you have your dns server yeah?

host the site in a folder on the same server so www.abc.com/xyz


and have the xyz domain name point to there

#3 +BudMan

BudMan

    Neowinian Senior

  • Tech Issues Solved: 74
  • Joined: 04-July 02
  • Location: Schaumburg, IL
  • OS: Win7, Vista, 2k3, 2k8, XP, Linux, FreeBSD, OSX, etc. etc.

Posted 01 October 2012 - 15:43

dns can not forward to different ports.

What you would do is setup host headers IIS or virtual host in apache.

Now servers sees the name your trying to reach be it www.abc.com or www.xyz.com and serve up the correct site. This would all be done on port 80 and if same IP address.

if you have multiple IPs then you could point www.abc.com to IP1 and xyz to IP2 -- but if you only have 1 IP address then you need to use host header based hosting.

http://httpd.apache....name-based.html

http://technet.micro...5(v=ws.10).aspx

#4 togermano

togermano

    hot top for the bottoms

  • Joined: 29-December 02
  • Location: MA,USA
  • OS: win98se(For real)

Posted 01 October 2012 - 15:50

dns can not forward to different ports.

What you would do is setup host headers IIS or virtual host in apache.

Now servers sees the name your trying to reach be it www.abc.com or www.xyz.com and serve up the correct site. This would all be done on port 80 and if same IP address.

if you have multiple IPs then you could point www.abc.com to IP1 and xyz to IP2 -- but if you only have 1 IP address then you need to use host header based hosting.

http://httpd.apache....name-based.html

http://technet.micro...v=ws.10%29.aspx


He speaks da truth x USe port 80 when possible.... Some companys block traffic that isnt port 80

#5 +BudMan

BudMan

    Neowinian Senior

  • Tech Issues Solved: 74
  • Joined: 04-July 02
  • Location: Schaumburg, IL
  • OS: Win7, Vista, 2k3, 2k8, XP, Linux, FreeBSD, OSX, etc. etc.

Posted 01 October 2012 - 16:04

This is exactly how shared web hosting works on webhosts. They can have 10's if not 100's of sites hosted off the same IP address all on port 80.

They sure don't give every user their own IP, unless you pay extra for that ;) And you can host unlimited number of domains off the same IP.

#6 OP Raffye.Memon

Raffye.Memon

    KaRaCh|K|nG555

  • Joined: 16-September 05
  • Location: .::PakIsTan::.

Posted 01 October 2012 - 20:54

Thanks Alot guys.. !

1 more question do i need to setup local DNS server to host these 2 or more sites on my server. ??? its win2003r2 server, do i have to update my local DNS server ??

#7 +BudMan

BudMan

    Neowinian Senior

  • Tech Issues Solved: 74
  • Joined: 04-July 02
  • Location: Schaumburg, IL
  • OS: Win7, Vista, 2k3, 2k8, XP, Linux, FreeBSD, OSX, etc. etc.

Posted 01 October 2012 - 21:04

Why would you think that? These are sites that are resolved on the public internet right. Who provides your dns for abc.com now? Your registrar, some dns service like zoneedit, dnsmadeeasy, etc. Just point your A record for www for xyz.com to your IP and there you go, where ever you host that dns at.

#8 OP Raffye.Memon

Raffye.Memon

    KaRaCh|K|nG555

  • Joined: 16-September 05
  • Location: .::PakIsTan::.

Posted 01 October 2012 - 21:44

thanks buddy... ! just had a confusion that i had do setup local dns server for hosting multiple sites.. !



Click here to login or here to register to remove this ad, it's free!