English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

If only one port80 bind to web server, how it manage to handle all the customer request?

2007-03-26 09:23:08 · 4 answers · asked by Anonymous in Computers & Internet Computer Networking

4 answers

You can't have 2 port 80 open at the same time... even though you can have 2 different programs use it, as long as they stay within the bandwith limit of the port (set to 100MB by default).

2007-03-26 09:28:00 · answer #1 · answered by Tucker 2 · 0 0

You don't "bind" port 80 for a single user's request. Each client will be communicating with your server on port 80, true. However, your server will handle multiple requests on port 80 automatically. The only issue is how many resources your server has (bandwidth, RAM, processor power and disk access speed). The more horsepower, the more requests can be handled simultaneously. As your web site runs, use performance monitor to gauge the critical choke points over time, then add resources to meet the load (by increasing bandwidth, RAM, etc... whichever is being stressed. For very heavy loads, you'll need to add additional servers in a cluster environment.

2007-03-26 10:29:32 · answer #2 · answered by antirion 5 · 0 0

A simple exchange between the client machine and Web server goes like this:

1. The client's browser dissects the URL in to a number of separate parts, including address, path name and protocol.

2. A Domain Name Server (DNS) translates the domain name the user has entered in to its IP address, a numeric combination that represents the site's true address on the Internet (a domain name is merely a "front" to make site addresses easier to remember).

3. The browser now determines which protocol (the language client machines use to communicate with servers) should be used. Examples of protocols include FTP, or File Transfer Protocol, and HTTP, HyperText Transfer Protocol.

4. The server sends a GET request to the Web server to retrieve the address it has been given. For example, when a user types http://www.example.com/1.jpg, the browser sends a GET 1.jpg command to example.com and waits for a response. The server now responds to the browser's requests. It verifies that the given address exists, finds the necessary files, runs the appropriate scripts, exchanges cookies if necessary, and returns the results back to the browser. If it cannot locate the file, the server sends an error message to the client.

5. The browser translates the data it has been given in to HTML and displays the results to the user.

This process is repeated until the client browser leaves the site.

2007-03-26 09:32:45 · answer #3 · answered by 7S282 4 · 0 0

The default HTTP port is 80, any request coming on that port will be forwarded to whatever computer you have it forwarded to.

2007-03-26 09:27:55 · answer #4 · answered by Yoi_55 7 · 0 0

fedest.com, questions and answers