More Group Sites
Education Books
School Rankings
Jobless Net
Better Home
Enviro++
更好教育论坛


Help | Subscribe/Unsubscribe | Rules | Other Group Sites: Better Education | Better Education Forum
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Share
Options
View
Go to last post Go to first unread
hong  
#1 Posted : Sunday, 1 October 2017 11:13:49 AM(UTC)
hong

Rank: Administration

Reputation:

Groups: AcademicCoachingSchool, admin, Administration, BookSeller, CatholicSchool, CoachingAdult, CoachingProfessional, CoachingSports, ExtraCurriculumCoaching, IndependentSchool, Moderator, MusicTeacher, PrivateSchool, PublicSchool, SelectiveSchool, tutor
Joined: 23/11/2008(UTC)
Posts: 519

Host multiple websites on one server

Do you need more than one ip, domain name or port to host multiple websites? The rule is simple: ip + port + host header, one of them might be unique for hosting multiple websites.

host header:

A host header is a third piece of information that you can use in addition to the IP address and port number to uniquely identify a Web domain or, as Microsoft calls it, an application server. For example, the host header name for the URL http://www.bettereducation.com.au is www.bettereducation.com.au

The host-Header tells the webserver which virtual host to use. You even can have the same virtual host using several aliases (= domains and wildcard-domains).

1. same ip and same port, different host headers

Use bindings to bind each site to a different host name:

 www.domain.com

subdomain.domain.com

www.anotherdomain.com

Make sure you have configured DNS records to point at the same IP. Add a catchall DNS entry for a domain and point it at the IP of the server for new subdomains to work automatically.

2. same ip and different ports

The default web ports are 80 and 443 for SSL. You can use other ports, eg. http://mysite:81, https://mysite:123/

Note that in some cases, people don't want to show domain names.

3. different ips

SSL can only be segmented by IP and Port. However, you can run SSL over a different port than the default 443 by simply adding a binding for https and a different port. This means if you want default ssl port 443, you need different ips for each ssl website.

Related: Multiple ssl certificates with one ip and same port but different host headers

Edited by user Monday, 2 October 2017 6:41:14 AM(UTC)  | Reason: Not specified

Sponsor
Rss Feed  Atom Feed
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.