Apache is a free Web server from the Apache
Software Foundation. Internet Information Server (IIS) is Microsofts
Web server. The next major release of Apache is version 2.0, now in alpha,
and the latest alpha version is 2.0a7. Apache 2.0 is expected to be available
later this year. IIS 5.0 is the latest version of IIS; it runs on Windows
2000 servers. We'll compare the functions and features of Apache and IIS.
Since the introduction of version 1.0 in December 1995, the
Apache Web server has been very well received, and its use has grown steadily
ever since. According to the Netcraft Web server survey, Apache runs on about
60 percent of all public Web servers (15 million public Web sites in total),
while IIS runs on only 21 percent of all public Web sites (see
note below).
Development Model
Besides the fact that Apache is free if you
download the software, the other major difference between IIS and Apache is that
the source for Apache is freely available. The free source model has spurred the
development of Apache functions from many volunteer programmers (and recently
from IBM), resulting in a fairly rapid pace of functional enhancements. In addition,
Apache is modular in structure, permitting Apache users to pick and choose modules
to fit their requirements. By comparison, your ability to customize IIS functionality
is limited. Apaches freely available source has also produced fairly quick
bug fixes. Overall, Apaches development model has resulted in a robust,
reliable Web server.
On the other hand, IIS is typical of many Microsoft Windows-based products.
It supports the Windows GUI and provides integration with other Windows mechanisms,
such as Active Directory, MS SQL Server and Windows Security services. IIS also
leverages the benefits of COM+. On the downside, IIS requires additional Microsoft
products, such as Windows 2000 or Active Directory. This dependency causes a
worry of potential lock in to Microsoft products and strategy for some companies.
Standards Support
Standards support is very important in many government contracts and procurements.
The following table summarizes the standards support implemented by Apache and
IIS.
Feature
Apache
IIS
Comments
HTTP 1.1
Yes
Yes
SNMP
No
Yes
A commercial plug-in SNMP module is available for Apache from Covalent that provides real-time management information for server access statistics, activity, load and utilization as well as on-the-fly configuration changes. Additional information is available at http://www.covalent.net/products/snmp/.
W3Cs extended log format
Yes
Yes
ISAPI
Yes
Yes
ISAPI extension modules are written by third parties and available as part of the Apache distribution. Apache supports ISAPI extensions but does not support ISAPI filters.
SSL 2.0/3.0
Restricted
Yes
A module is available for Apache that provides strong cryptography for the Apache 1.3 Web server SSL 2/3 and TLS 1 (Transport Layer Security 1) protocols. However, this module can be used only outside the United States for free. In the United States, you can use it for noncommercial purposes for free if you use RSAREF (because of various patents held by RSA).
WebDAV
Yes
Yes
Part of Apache 2.0 functionality. WebDAV, which stands for Web Distributed Authoring and Versioning, is a standard under development by W3C, for Web-based collaborative document development.
Web Server Prerequisites
A major difference between Apache and IIS is their prerequisites.
While Apache is available for many Unix versions, Linux, Windows and OS/2, IIS
can run only in the Windows environment. Whats more, the latest version
of IIS will run only on Windows 2000 server.
Feature
Apache
IIS
OS dependency
Unix, Linux, Windows, OS/2
Windows
Hardware platform
Wide range of hardware supported by the different operating systems, including Intel and SPARC.
Those supported by Windows.
Administration Considerations
Both Apache and IIS provide many built-in administration functions. These functions
include:
Web server administration using scripts for commonly performed functions
Support for multiple hardware virtual servers using separate IP addresses
The ability to manage multiple Web servers as one server
Support for multiple software virtual servers using host headers
Unlike Apache, IIS provides GUI support for server administration. One of the
projects under the auspices of the Apache Software Foundation is to develop
a graphical configuration tool for Apache. Additional information on this project,
including a mailing list, can be found at http://gui.apache.org/. GUI-based
and browser-based administration products are also available from third parties
for Apache. One such product is the Plesk Server Administrator from Plesk.
Besides administrative GUI support, IIS also provides the ability to administer
one or more IIS Web servers from a Web browser. IIS also provides some common
administration functions available with other Microsoft products, such as a
setup wizard and unattended/remote setup and maintenance. IIS even provides
integration with Windows operating system functions such as directory services,
backup and restore of IIS configuration information and the Windows performance
monitor (to view IIS performance data).
Log Considerations
Both Apache and IIS can write to multiple logs using standard and extended
log formats (from the W3C) and can even support custom logging. Both products
permit logging to text files. Both products also let you automatically close
an aging log file and open a new file based on elapsed time.
Here again, IIS provides better integration with Windows OS facilities. For
example, IIS can write file security and application events to the Windows event
log, which can then be viewed using standard Windows tools, such as Event Viewer.
IIS also provides logging to any ODBC database. In fact, multiple IIS servers
can log to a single ODBC database. Logging to an ODBC database in Apache is
possible, but only through an add-on. Likewise, modules are available outside
the official Apache distribution that provide log file analysis, data distribution
and so on.
Security Considerations
Both Apache and IIS support basic security features out of the box. These include:
Restrict access by domain name
Restrict access by user
Restrict access by group
Restrict access by directory and/or file
Restrict access by IP address
Basic HTTP user authorization with clear-text passwords
However, IIS provides the ability to integrate Web server security with Windows
security features. For example, Windows supports ACLs (access control lists),
which IIS can use to administer Web server security. Moreover, Windows 2000
can store its ACLs in Active Directory and support authentication using digital
certificates (such as those that conform to the X.509 certificate standards).
IIS can then leverage these security mechanisms directly.
Process/Thread Considerations
Both IIS and Apache provide isolation between different Web client access requests.
Apache, in its current standard distribution, forks processes in response
to incoming Web client requests. This approach tends to be more resource-intensive
than spawning threads within a process, which is the approach adopted by IIS.
However, thread support will be one of the main enhancements to arrive with
Apache 2.0.
Content Management Considerations
Both Apache and IIS provide functions for content management, such as:
Content expiration
Multiple platform support for content store and make commands
Built-in image map handling
Custom HTTP headers
HTTP redirects
Document footers
Custom error messages
Additionally, IIS provides Windows-style tools, such as HTML page and site
wizards as well as HTML templates. With its tight Windows integration, IIS can
also provide enhanced file system security.
Conclusion and Other Alternatives
If you run a Windows-centric environment, and you prefer the service and support
offered by Microsoft, your natural choice should be IIS. If you run a cost-conscious,
heterogeneous environment, and you have a staff with Web server expertise, your
natural choice should be Apache.
Although weve been discussing IIS and Apache, there are other options
you should be aware of. For example, if you prefer service and support from
a commercial vendor, you do not want to be locked into a Microsoft solution,
and you have a Java-rich environment, your natural choice should be iPlanet
from Netscape. If you prefer Apache but want additional modules not included
in the base distribution and want service and support from a commercial vendor,
consider solutions such as WebSphere from IBM.
Comments on this article? Please send them to Raj Rajagopal at rajagop@mitre.org
References
See our recent preview of Apache 2.0.
Useful Web sites:
The ASF is at www.apache.org.
Information on the Netcraft survey is available
at www.netcraft.com.
The Biznix organization Web site is www.biznix.org.
Netcraft issues. Note that questions exist
over the validity of the Netcraft survey for determining Web server market
share. In tabulating its statistics, Netcraft measures the domain names
of all public Web sites. The problem with this approach is that the correspondence
between domain names and the Web servers that support those public domain
names is not one to one. Basically, one Web server can support more than
one domain name (commonly called virtual hosting). This is particularly
true of ISPs providing Web hosting services for a number of domain names,
which is where Apache appears to be the clear leader. Alternately, more
than one Web server could be behind a single domain name. This is particularly
true in the case of sites running high volume SSL (Secure Sockets Layer)
transactions. Such sites normally run IIS or Netscapes iPlanet Web
server. Also, intranet site Web servers may not be properly counted in
the Netcraft survey.
There are other surveys of Web servers. One such survey
is from BizNix.org, the organization that promotes the use of Unix and
Linux. This survey is available at http://www.biznix.org/surveys. According
to this survey, IIS is the leading Web server at Fortune 500 companies.
REPORTS
Analyize In-Line NAC strategies and products.
ANALYTICS Plan and design your enterprise blade server deployments
2009 IT Salary Survey: Meager Raises, Solid Prospects
Though raises are notably smaller than a year ago, and job security’s shrinking, IT careers are looking safer than many others in this economic downturn. Get all the findings in InformationWeek's 2009 IT Salary Survey. Available FREE for a limited time.