|
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
|
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
3 |
|
4 <html lang="en-US"> |
|
5 |
|
6 <!-- |
|
7 CDDL HEADER START |
|
8 |
|
9 The contents of this file are subject to the terms of the |
|
10 Common Development and Distribution License (the "License"). |
|
11 You may not use this file except in compliance with the License. |
|
12 |
|
13 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
14 or http://www.opensolaris.org/os/licensing. |
|
15 See the License for the specific language governing permissions |
|
16 and limitations under the License. |
|
17 |
|
18 When distributing Covered Code, include this CDDL HEADER in each |
|
19 file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
20 If applicable, add the following below this CDDL HEADER, with the |
|
21 fields enclosed by brackets "[]" replaced with your own identifying |
|
22 information: Portions Copyright [yyyy] [name of copyright owner] |
|
23 |
|
24 CDDL HEADER END |
|
25 |
|
26 --> |
|
27 |
|
28 <!-- |
|
29 Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved. |
|
30 --> |
|
31 |
|
32 <head> |
|
33 <!-- GenHTML revision 25226--> |
|
34 |
|
35 <meta http-equiv="Content-type" content="text/html; charset=utf-8"> |
|
36 </head> |
|
37 |
|
38 <body class="HlpBdy"> |
|
39 |
|
40 <a name="apache-portnum"></a><h4>Why Would I Change the Port Number for a Virtual Host?</h4> |
|
41 <p>By default, the Apache service listens for requests on port 80 and on |
|
42 all IP addresses configured on the local host. By selecting a specific port |
|
43 you can determine how each virtual host responds to different IP addresses, host |
|
44 names and ports. This is equivalent to the <tt>Listen</tt> directive.</p> |
|
45 |
|
46 <p>Multiple virtual hosts can listen on the same port. If there is ambiguity |
|
47 as to which virtual host should serve a particular request, first the domain |
|
48 names of the virtual hosts is compared with the domain name in the |
|
49 incoming request. If they match then the matching virtual host is used. If |
|
50 no match is found or no domain name was used in the request, |
|
51 then one of the virtual hosts defined for that port is used.</p> |
|
52 |
|
53 |
|
54 <br> |
|
55 |
|
56 |
|
57 <small>Copyright © 2010, 2012, Oracle and/or its affiliates. All rights reserved. <a href="docinfo.html">Legal Notices</a></small> |
|
58 |
|
59 </body> |
|
60 </html> |