Configuring an Apache Virtual ServerWindows系统 电脑资料_第1页
Configuring an Apache Virtual ServerWindows系统 电脑资料_第2页
Configuring an Apache Virtual ServerWindows系统 电脑资料_第3页
Configuring an Apache Virtual ServerWindows系统 电脑资料_第4页
Configuring an Apache Virtual ServerWindows系统 电脑资料_第5页
已阅读5页,还剩15页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Configuring an Apache Virtual ServerWindows系统 电脑资料 过节没有什么好送的就送大家一些文章吧:) ConfiguringanApacheVirtualServer - TableofContents VirtualWebServers SingleIPAddress MultipleIPAddress Apache ApacheNon 过节没有什么好送的就送大家一些文章吧:) Configuring an Apache Virtual Server - Table of Contents Virtual Web Servers Single IP Address Multiple IP Address Apache Apache Non-IP Intensive Virtual Server Apache IP Intensive Virtual Server - Virtual Web Servers Single IP Address Multiple IP Address The simplest way to configure a World Wide Web Server is to dedicate a single machine as the host for a single web domain. While this configuration is straightforward and easy to establish, it may not make maximum use of the web hosts resources. That is, the web domain may not use all of the servers capability or capacity. You can, however, configure a World Wide Web Server as a virtual web host, which means that two or more web domains can share the resources of the server. From the Inter Service Providers (ISPs) perspective, a virtual web host provides cost-efficient use of the server and allows the ISP to make more of the servers capacity available for web domain hosting. From the ISP customers perspective, a virtual web host allows the customer to share the web server with others, while maintaining a unique web domain address. For example, the same web server is available as .pany1. and .pany2. Consider the example of an ISP who has a server with the domain name .isp. This server provides web space for several customer organizations, including pany1 and pany2. Without virtual web hosting, these customers are given parts of the web tree on .isp. Their homepages might appear as described in Table 1-1. Table 1-1: Example Home Pages for a Non-Virtual Host Server Company URL pany1 .isp./pany1/ pany2 .isp./pany2/ Each customer organization prefers that their home page appear under their own domain name rather than as a branch of the ISPs server domain name. But, the customer organizations do not wantto set up their own inter links and servers. The ISP can define their server as a virtual host, which allows pany1 and pany2 to each have their own Inter name registrations, .pany1. and .pany2, respectively. These names both correspond to the ISPs server (.isp.). The home pages might now appear as shown in Table 1-2. Table 1-2: Example Home Pages for a Virtual Host Server Company URL pany1 .pany1./ pany2 .pany2/ There are two methods you can use to establish your server as a virtual web host. You can configure your web server to use a single instance of the web server and a single IP address, but map the IP address to multiple domain names. Under Apache, the resulting configuration is called a non-IP intensive virtual server. Alternatively, you can configure your web host to use an instance of the web server and an IP address for each domain name. Under Apache, the resulting configuration is called an IP intensive, or multiple IP, virtual server. The non-IP intensive method results in multiple domain names that link to the same server instance within the same Web server. The IP intensive method results in multiple virtual server instances linked to the same Web server, with each virtual server instance linked to a particular IP address. When this document discusses a server instance, it refers to a new server configuration under a currently installed Web server. This document describes the differences between IP and non-IP intensive virtual servers and the pros and cons of each implementation. The document also describes how to configure Apache to implement both types of virtual server. Most of the information on Apaches implementation of virtual web hosts, including the configuration instructions, es from the Apache home page. See that page for plete descriptions of all Apache implementations and configuration directives. Return to Table of Contents Single IP Address When you configure your web server as a virtual server using the single IP address method, you establish a single IP address and hostname for that single instance of the web server. For each customer domain name, you map an IP hostname alias to the IP address already associated with the server. To map an IP hostname alias to the servers IP address, you create canonical name, or AME, entries in your DNS (Domain Name System) server for each domain name. For example, if you have a web server defined as .isp., you can configure DNS with multiple AME entries that point to .isp. In this way, .customer1., .customer2. and other customer domain names can share your ISP server, while each has a unique home page and unique domain name. Apache calls this method of creating a virtual server a non-IP intensive virtual server. The single IP address method conserves IP addresses, which are a diminishing resource. This method also requires less time and fewer configuration changes, it is easily implemented using AME entries, and it allows each customer to share the mon servers content settings. Under Apache, you can individualize the settings for the user area (the VirtualHost directive in the configuration file), but the daemon settings for the single IP address are shared by each virtual host. However, because some browsers do not support the single IP address method, you may have to implement the multiple IP address virtual server method. To directly aclearcase/ target=_blank ess your customers home page, the users client browser must support Version 1.1 protocol (the browser must pass the _HOST environment variable). If the client browser does not support Version 1.1, aess to the ISPs home page. For browsers that do not support Version 1.1, the ISP must provide links to the customer home pages. For information on configuring a virtual server using the single IP address method, see: Apache Non-IP Intensive Virtual Server Return to Table of Contents Multiple IP Address When you configure your web server as a multiple IP address virtual server, you create an instance of the web server and an IP address you bind to that server instance for each customer domain name. That is, you create a virtual server instance reconfigured from an existing, installed, server for each customer domain name you establish. You do not install a new server. To configure a multiple IP address virtual server, the operating system must also support your ability to define a host name alias for each web server instance and IP address bination (for example, ifconfig alias on Tru64UNIX). Apache calls this method of creating a virtual server an IP intensive virtual server. Unlike the single IP address virtual server method, each virtual server under the multiple IP address method is a separate instance of the web host. Customer sites are not constrained to Version 1.1 browser support. Under Apache, you can configure an IP intensive virtual server with multiple daemons or a single daemon and control the degree of difference between each virtual server instance. Under the multiple IP address virtual server method, each server instance is unique and each requires a separate IP address. For an ISP hosting a number of customer domains on the web server, the large number of directories, multiple IP addresses, and the setup configurations for each instance can bee a maintenance challenge. On an Apache Web Host server, you can mitigate this situation by configuring virtual servers with the multiple IP address method using a single daemon, rather than multiple daemons. Also note that, on Tru64 UNIX, a single work card can support at least 5000 IP addresses. For information on configuring a virtual server using the multiple IP address method, see: Apache IP Intensive Virtual Server Return to Table of Contents Apache Apache Non-IP Intensive Virtual Server Apache IP Intensive Virtual Server The method you use to establish the Apache Web Server as a virtual server supporting multiple domain names depends on the version of Apache Web Server you have and the version of protocol you support. Version 1.1 and later of the protocol allows the server to determine the hostname that is referenced by address; thus, you can associate more than one domain name with the IP address that is linked to the server. If you are using an Apache Web Server, Version 1.1 or later and your environment supports protocol, Version 1.1 or later, you can configure an Apache non-IP address intensive virtual server. Versions of the protocol prior to Version 1.1 do not allow a server to determine the hostname that is referenced by address; thus, each server requires a unique IP address. If you are using a version of the Apache Web Server that is earlier than Version 1.1 or your environment does not support a version of protocol later than Version 1.1, you must configure an Apache IP intensive virtual server. If the versions of and Apache in your environment require you to establish a separate IP address and server instance for each virtual server, use the non-IP intensive virtual server method to create an Apache Virtual Web Host. The non-IP intensive virtual server method allows you to conserve the diminishing number of IP addresses while aommodating the growing number of domains. To define a virtual server, you use VirtualHost directives. When the server gets a request for a document on a particular virtual host, the server uses the VirtualHost directives for that virtual host to properly route and handle the request. Each VirtualHost directive corresponds to a different IP address or to a different host name for the Apache Web Server. If you are configuring a virtual server as an alternate host name, the Web Server must be able to aept IP packets for multiple IP addresses. You can use the Tru64 UNIX ifconfig alias mand to configure the Web Server for multiple addresses. This section summarizes information found on the Apache Web Server home page, .apache/, which contains information on configuration of the Apache Server, reference to all directives, release notes, and solutions to various implementation issues. Return to Table of Contents Apache Non-IP Intensive Virtual Server To establish an Apache non-IP intensive virtual server, you must establish a single instance of the server and a single IP address associated with that server. With those prerequisites met, you edit the Apache configuration files to associate two or more domain names with the server and to establish document roots for the home pages of those domains. Also, you must map an IP address alias to the IP address associated with the server. To map an IP address alias to the servers IP address, you create canonical name, or AME, entries in your DNS (Domain Name System) server for each domain name. For example, if you have a web server defined as .isp., you can configure DNS with multiple AME entries that point to .isp. In this way, .customer1., .customer2. and other customer domain names can share your ISP server, while each has a unique home page and unique domain name. Ensure that there is an IP address for the Apache Web Host. Ensure that there is a DNS entry for each new virtual host and that the entry points to the same IP address as the host server. Alternatively, you can include the IP address in the VirtualHost section of the configuration file. Edit the Apache d.conf configuration file to add a VirtualHost section for each domain you wish to link to the host server. The VirtualHost section contains at least a ServerName and DocumentRoot directive and an optional ServerAlias directive. Reboot the Apache server. Consider the following example of a VirtualHost section from the d.conf configuration file: ServerName .apache DocumentRoot /usr/web/apache ServerAlias apache *.apache In this example, you define a virtual host named .apache, whose DNS entry must point to the same IP address as the Apache Web Host server. (You can also use the Apache Web Host server IP address in the VirtualHost directive instead of the Apache Web Host name. The document root for the .apache home page is placed at /usr/web/apache. Also, in this example, you use the ServerAlias directive and a wildcard to ensure that all apache addresses (.apache, ftp.apache, etc.) point to the Apache Web Host server. For full documentation on Apache virtual servers, including information on security concerns when using virtual hosts and how to use virtual hosts in an environment containing older browser versions, refer to the documentation repository at the Apache web site. Return to Table of Contents Apache IP Intensive Virtual Server Versions of the protocol prior to Version 1.1 do not allow a server to determine the host name by which it is addressed, thus, each server requires a unique IP address. If you are using a version of the Apache Web Server that is earlier than Version 1.1 or your environment does not support a Version 1.1, or later, protocol, you must configure an Apache IP intensive virtual server (multiple IP address method). Apache has two ways you can configure an IP intensive virtual server: Run a separate d daemon for each hostname. Use this method when the different virtual hosts need different configurations, such as different values for ServerType, User, Group, TypesConfig or ServerRoot. Because an increase in the number of running daemons has an impact on operating system performance, you should not use this method if the Apache Web Host server has a high request rate. Run a single daemon which supports all the

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论