Recommended Posts

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

Link to comment
https://www.neowin.net/forum/topic/1109357-hosting-multiple-sites-on-1-server/
Share on other sites

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.org/docs/2.2/vhosts/name-based.html

http://technet.microsoft.com/en-us/library/cc753195%28v=ws.10%29.aspx

  • Like 2

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

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.

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.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Everything I have read is that the BBC is still Pro Doctor Who but wants a solid plan before they let anyone else try to do it. Which is fair.
    • I totally agree no one should trust governments AND big tech companies that have near monopolies in certain market segments. The difference is of course citizens at least have some say in government. Yes, requiring Apple to open up Sirsi to other AI backends is in the interest of EU customers and certainly "opens" up the platform a crack. What are you saying? I wish the US would regulate tech companies more here and even break them up in some cases. Granted trusting the government to do it right is a crap shot at best but what is the alternative? To allow a few tech companies to continue to run everything and just print money? It's crazy to me for example that in most of the world 99% of communications go thru Facebook servers via WhatsApp. What kind of dystopian world are we living in?
    • You can.. make sure you have ADB tools on whatever OS you are running, plug your phone into your PC give it approval to talk to the phone then run this command. adb shell pm uninstall -k --user 0 com.android.chrome So long as you leave Android Webview untouched it wont break anything on your Phone to do this. I have been using exclusively Firefox mobile since it was released.
    • If it ain't broke, don't fix it. One Commander Free also available in the Store has been my goto Files Manager for years. It does what I need at a more than reasonable speed. I do occasionally use Files Explorer just because it is there and does what I need without any problems when I use it.
    • I think you missed his point. He wasn't saying that cloud storage isn't possible on GNU/Linux, clearly it is. He was pointing out that you are commenting about your dislike of Windows on an article about OneDrive (not Windows) for Mac (also not Windows). Its about as off topic as coming to an article about Sony improving something on the PlayStation and saying that you hate Sony TVs and prefer LG.
  • Recent Achievements

    • One Month Later
      Tommi118 earned a badge
      One Month Later
    • One Month Later
      sjbousquet earned a badge
      One Month Later
    • Week One Done
      sjbousquet earned a badge
      Week One Done
    • First Post
      DragonOfMercy earned a badge
      First Post
    • First Post
      bella52 earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      500
    2. 2
      PsYcHoKiLLa
      208
    3. 3
      +Edouard
      155
    4. 4
      Steven P.
      83
    5. 5
      FloatingFatMan
      73
  • Tell a friend

    Love Neowin? Tell a friend!