Migrating a Web Server to IIS 5.0

Previous Topic Next Topic

Server Directives

Table 3.2   Apache httpd.conf Directives and Corresponding IIS 5.0 Properties



Apache Directive
Wizard
Migrates
(Y/N)

IIS Metabase
Property


IIS Snap-in Configuration
AccessConfig No Not applicable The wizard uses these parameters for mapping to the access configuration information. However, in IIS 5.0 there is no separate access configuration file.
BindAddress Yes ServerBindings For multihoming, IIS 5.0 allows you to specify Virtual Hosts, or virtual servers. To configure a virtual server, right-click a Web site, choose Properties, and then select the Web Site tab. Click the Advanced button on the Web Site tab, and add the correct IP address and Transmission Control Protocol (TCP) port.
CacheNegotiatedDocs No Not applicable You can specify an expiration date for content in a browser or proxy cache. To configure this setting, right-click a Web site, choose Properties, and then select the HTTP Headers tab. Select the Enable Content Expiration check box and enter expiration dates.
ErrorLog No Not applicable All errors for the Inetinfo process are logged to the Windows® Event Log and do not need to be specified in the Web server configuration. The wizard uses IIS 5.0 default log settings.
ExpiresActive Yes HttpExpires In IIS 5.0 content expiration is disabled by default. To enable content expiration, right­click a Web site, choose Properties, select the HTTP Headers tab, and then check the Enable Content Expiration check box.
ExpiresDefault Yes HttpExpires In IIS 5.0 content expiration is disabled by default. To enable content expiration, right­click a Web site, choose Properties, and then select the HTTP Headers tab. Select the Enable Content Expiration check box, and then set the parameters.
Header Yes HttpCustomHeaders To create a custom header, right-click a Web site, choose Properties, and then select the HTTP Headers tab. In the Custom HTTP Headers box, click Add, and then type a name and a value for the header.
HostnameLookups Yes EnableReverseDNS IIS 5.0 log files capture the IP addresses of Web site visitors. To look up the host name of a given IP address, enable the metabase property EnableReverseDns. To set IP address restrictions, right-click a Web site, click Properties, click the Directory Security tab, and then click the Edit button in the IP Address and Domain Name Restrictions box.
IdentityCheck Yes LogExtFileUserName To log the identity of each Web site visitor, right-click a Web site, click Properties, and then click the Web Site tab. Select the Enable Logging check box, and then click Properties. Click the Extended Properties tab, and then select the User Name check box.
<IfDefine> Yes Not applicable The wizard uses this information when parsing the Apache files.
Include Yes Not applicable This directive is not needed in IIS 5.0.
KeepAlive Yes AllowKeepAlive, MaxConnections In IIS 5.0, HTTP Keep-Alives are enabled by default. To disable Keep-Alives, right-click a Web site, and choose Properties. On the Web Site property sheet, clear the HTTP Keep­Alives Enabled check box. You set the maximum number of connections and the connection time-out in this location as well.
KeepAliveTimeout Yes Connection Timeout To set the Keep-Alive time-out, right-click a Web site and then choose Properties. In the Connections box on the Web Site property sheet, select the Limited To radio button and, in the Connection Timeout box, specify the number of seconds you want before an idle connection times out.
Listen Yes ServerBindings IIS 5.0 allows you to specify a port for name­based virtual hosts. To configure this setting, right-click a Web site and then choose Properties. On the Web Site property sheet, click the Advanced button, and then enter the TCP port number.
ListenBacklog Yes ServerListenBacklog This is a service-level property, and it cannot be configured from MMC.
MaxClients Yes MaxConnections To configure this property, right-click a Web site, choose Properties, and then select the Web Site tab. Select the Unlimited or the Limited To radio button. For limited connections, in the Connection Timeout box specify the number of seconds before a connection should time out.
MaxKeepAliveRequests No Not applicable There is no equivalent in IIS 5.0.
MaxRequestsPerChild No Not applicable IIS 5.0 uses a limited number of processes, and there is no need to set the maximum number of requests per child process as there is with Apache.
Min/MaxSpareServers No Not applicable IIS 5.0 uses a limited number of processes, and there is no need to account for this number.
NameVirtualHost Yes ServerBindings An Apache virtual host corresponds to an IIS 5.0 Web site. In IIS 5.0, you can create virtual hosts either by using multiple IP addresses or by using a single IP address and HTTP 1.1 Host Header Names. To create a virtual host with a unique IP address, right-click a Web site, choose Properties, and then select the Web Site tab. Click the Advanced button and specify the IP address. To specify a host header name for a name-based virtual host, right-click a Web site, and then choose Properties. On the Web Site property sheet, click the Advanced button and enter the host header name for the IP address you want to use.
PidFile No Not applicable IIS 5.0 does not offer the option to log its process ID to a file.
Port Yes ServerBindings To set the port to which your Web server should listen, right-click a Web site, choose Properties, and then select the Web Site tab. Enter a port number in the TCP Port box.
Proxy Cache Parameters No Not applicable IIS 5.0 cannot function as a proxy server on its own. Microsoft® Proxy Server is recommended as a proxy server for use with Windows 2000 Server.
ProxyRequests No Not applicable See the previous note for Proxy Cache Parameters.
RlimitCPU Yes CpuLimit IIS 5.0 has a number of properties that specify CPU throttling parameters. To specify performance parameters in the IIS snap-in, right-click a Web site, choose Properties, click the Performance tab, and then choose the settings you want.
ScoreBoardFile No Not applicable IIS 5.0 does not have a Scoreboard file.
ServerAdmin No Not applicable IIS 5.0 does not have a configuration setting for displaying the administrator’s name and contact information. You can add this information to your pages by using ASP.
ServerAlias Yes ServerBindings IIS 5.0 allows you to specify a host header name for a name-based virtual host. To configure this setting, right-click a Web site, and then choose Properties. On the Web Site property sheet, click the Advanced button and enter the host header name for the IP address you want to use.
ServerName No Not applicable The host name for your Web server is stored in your Domain Name System (DNS) server and is not required in IIS 5.0 configuration properties. However, you must specify an IP address and HTTP port in order for IIS 5.0 to serve content.
ServerPath Yes Path This directive is migrated to the Path property of the IIS Virtual Directory object. This property defines the path from a virtual directory to its corresponding physical directory. You configure this property in the IIS snap-in when you create a new virtual directory, by specifying from which directory the content is to be served.
ServerRoot Yes Not applicable The wizard uses this information for parsing Apache files, but IIS 5.0 does not have the same concept of server root and does not have a corresponding property.
ServerType No Not applicable IIS 5.0 always runs in stand-alone mode. Once IIS 5.0 is started, its process remains in memory and listens to the specified HTTP port. You can’t configure IIS 5.0 to dynamically load as with an inetd server on Apache.
StartServers No Not applicable See the previous note for Min/MaxSpareServers.
Timeout Yes ConnectionTimeout You can specify the maximum amount of idle time to elapse before your server drops a connection. To configure this setting, right-click a Web site, choose Properties, and then select the Web Site tab. Enter the maximum timeout value in the Connection Timeout box.
TransferLog No Not applicable IIS 5.0 does not use a transfer log.
User/Group No Not applicable When IIS 5.0 is installed, by default it creates the IWAM user account under which the server runs. You must be logged on as an administrator or operator in order to start and stop the IIS 5.0 service, but the process does not retain your permissions.
<VirtualHost> Yes Not applicable For each Apache virtual host, the wizard creates a new IIS Web site. It migrates the directives contained between the <VirtualHost> tags, including server bindings, and applies them to the Web site. You might need to correct the IP address of the new Web site following migration.


© 1997-1999 Microsoft Corporation. All rights reserved.