Thursday, April 16, 2009

Can you host multiple websites using 1 static ip address?

Ok so I have the server computer, server software, and 1 static ip address. Is that enough to host, for instance 12 websites. Or do I need an ip for each site?


Yes. Absolutely.

You can host HUNDREDS of sites on the same IP address on the same server.

This is how many hosts offer "Unlimited Domains" on same account. Basically, your sites will all have their own subdirectories in your hosting account.

If you're doing this on your own server, check into virtual domains (I think is what it's called)

Can't tell you exact way to do it, because it depends on whether you're on windows or Linux.

I personally host multiple domains on the same hosting company, FTP into the same server, same IP.. it is possible.

Physically, yes, it is possible; you would need to give the sites' pages different names and make sure that their links didn't cross over. Really all a website is is different webpages (HTML documents) stored on a server being uploaded to the users when their browsers request them with that page's URL. So, you can have as many HTML pages as you want stored on your server, and different URLs will just take the users to the different sites' pages. They would never know that your server also hosts another website. You will also need to register both sites' domains with that IP address. However, the more traffic your server has to handle, the slower the overall experience for your sites' users will be. The traffic increases the more sites you are hosting, so more sites=slower hosting.

Yes not a problem, but it best to have a server for each web sight with it own IP address, as for me i would not go over 4 web sights per server to cut down on the work load and still have a good bps rate, you don't want your customers waiting because your system is running to slow.... The ideal web sight would be a server for each website....

Not an easy answer...

If you'd like to host 12 websites - each of which have their own domain name (site1.com, site2.com, site3.com, etc.) you will need to have 12 unique public IP addresses.

If you want to host 12 websites that share a single domain name (for example, site.com/site1 - site.com/site2) you can host them that way from a single IP address.

You could use different ports for each web (site1.com, site1.com:8080, site1.com:8081, etc.) but this could get confusing - this will also allow you to use a single IP address.

The simplest way is 1 unique IP address per domain name.

Hope this helps!

You can host multiple sites under the same IP by implementing "host headers". When a web server serves pages based on the host header, it reads the domain name requested by the host and matches it with a configured web site. I'm guessing you're either using Apache or IIS. I've never set it up in Apache, but I have used it in IIS. Rather than go step-by through the IIS config, here are links to directions for IIS and also for Apache.

IIS: http://www.visualwin.com/host-header/

Apache: http://httpd.apache.org/docs/1.3/vhosts/name-based.html

If by chance you're using some other web server, just search on the server name and "host headers" and I'm sure you'll find your answer.

No comments:

Post a Comment