| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 123891 | 2012-03-22 23:31:00 | Hosting two different domains on one static ip | iansmcdonald (6977) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 1266403 | 2012-03-22 23:31:00 | Ok, I've trawled the internet and this very forum, but can't find anything I understand despite being reasonably literate and having a tip-of-the-fingernails grasp of how such things work. I have a couple of domains currently hosted by an ISP and I'm sick of paying large amounts of money to them for hosting. So I've just got a static IP and I've successfully accessed a dummy website hosted on it from outside my internal network, so I know I can easily host one of the domains. My question is, can I host two separate domains on the one IP address? I'm guessing that DNS servers could resolve 2 different web addresses to the one static IP, but in doing so is enough information passed on that my webserver (or whatever) can interpret this and point to the correct webserver? |
iansmcdonald (6977) | ||
| 1266404 | 2012-03-23 01:07:00 | You can configure your webserver to look at the URL used to access it & send the request to the correct site. What are you using to host your sites? | Greven (91) | ||
| 1266405 | 2012-03-23 01:29:00 | I'm using Abyss web server (only because it's free and I sort of understand how to configure it). Sounds like that's what I want to do. Can you point me in the direction of some clear. concise directions? I'm currently ignorant but not stupid! |
iansmcdonald (6977) | ||
| 1266406 | 2012-03-23 02:05:00 | What you are looking for is how to set up VirtualHost's, you can have as many as you want (limited by bandwidth and webserver specs obviously) Fairly trivial and plenty of docs for Apache2 (and it's "free" as well), no idea about Abyss though sorry (what were they thinking when they named THAT!) |
fred_fish (15241) | ||
| 1266407 | 2012-03-23 03:29:00 | What you are looking for is how to set up VirtualHost's, you can have as many as you want (limited by bandwidth and webserver specs obviously) Fairly trivial and plenty of docs for Apache2 (and it's "free" as well), no idea about Abyss though sorry (what were they thinking when they named THAT!)Mmm, definintely an abyssmal name :p! iansmcdonald: Note that you can only serve HTTP this way, not HTTPS (slight lie, but correct for most practical purposes) - if you want to serve HTTPS on more than one domain, you're going to need a separate IP for each domain. If you only care about HTTP though, you're fine - you can have as many HTTP domains on a single IP as you wish. |
Erayd (23) | ||
| 1266408 | 2012-03-23 03:33:00 | You can get hosting for a couple of bucks a month, why not get somebody else to host it for you and have them take care of the server instead of paying for the bandwidth off your DSL connection at ~$2 per-GB? ;-) Otherwise, as mentioned, vhosts are what you're after! |
Chilling_Silence (9) | ||
| 1 | |||||