| Back to logs list
812325 2009 年 07 月 19 日 16:09 Reading (loading. ..) Comments (1) Category: Programming Techniques
in an IP address to create multiple web sites,
justin bieber shoes, IIS5, we could achieve this by setting a simple goal.
in IIS, each Web site has a unique identity consists of three parts, with to receive and respond to a request:
(1) IP address
(2) port number
(3) host header name.
in IIS,
supra high tops, in an IP address to create multiple independent web sites, there are generally two methods, the paper presented in the form to host the first example of method, this method can be used to build a professional virtual host.
Environment: hypothesis ** Company (Oh ...) with a single win2000 server to provide virtual hosting services, the address is 192.168.1.10. on this server have installed Internet service that is IIS5.
network now seeks administrator on the server to use a IP ABCD four companies for the establishment of an independent Web site,
supra skytop shoes, each site has its own independent domain name. four domain were:
www.a.com
www. b.com
www.c.com
www.d.com.
by using the host header, the site only one IP address can maintain multiple sites. Customers can access their domain name using a different site, simply do not feel the same host these sites.
specific operation is as follows:
1. win2000 server in the establishment of four companies in the folder, as a WEB site home directory. as follows: WEB Site Home Directory WEB site
d: web a A company's Web site
d: web b B website
d: web c C website
d: web d D website
2. using WEB Site Management Wizard,
black supra shoes, four companies were to establish an independent WEB site, the four biggest difference is the use of a different host header name:
A Company B Company Site Company Site D Site C site
IP address of the company 192.168.1.10
TCP port 80
permission to read and run scripts
host header names www. a.com
www.b.com www.c.com www.d.com
site home directory d: web ad: web bd: web cd: web d
in the DNS, domain name registration on these four,
cheap supra shoes, all point to the same address: 192.168.1.10. so, the client can:
A site visit to the company
http://www.a.com.
http://www.b.com B company site visits.
http://www.c.com visit C Company Site .
http://www.d.com D company site visits.
3. the host header name for each site WEB site established in the wizard to set it with the site's IP address, TCP port on the same screen. but also possibly through the site -> ;
establish this method can create a professional web hosting and almost all use the IIS web hosting companies offer to do so.
there is a different port is TCP method is relatively simple, that is, it wants to set a different port, such as 8080:8010,
cheap supra, etc., this approach is generally not used.