Apache

 
 
Apache is a powerful and flexible HTTP/1.1 compliant web server. Originally designed as a replacement for the NCSA HTTP Server, it has grown to be the most popular web server on the Internet. As a project of the Apache Software Foundation, the developers aim to collaboratively develop and maintain a robust, commercial-grade, standards-based server with freely available source code.

The Apache HTTP Server is distributed at no charge for commercial or non-commercial use. For more information read the LICENSE.txt file.

Apache can be used with Microsoft Windows. The Apache HTTP Server Version 2.0 runs under Windows NT, Windows 2000 and Windows XP. You should download the version of Apache for Windows with the .msi extension. This is a single Microsoft Installer file containing Apache, ready to install and run.

The latest Apache HTTP Server version can be downloaded from: http://httpd.apache.org/
The latest Apache 1.3 documentation can be found at: http://httpd.apache.org/docs/1.3/
The latest Apache 2.0 documentation can be found at: http://httpd.apache.org/docs/2.0/
The latest Apache 2.2 documentation can be found at: http://httpd.apache.org/docs/2.2/







Real-time monitoring Apache activity.



Information
The mod_status module provides the server administrator real-time information of server activity and performance.

More information can be found at: http://httpd.apache.org/docs/2.0/mod/mod_status.html

Operating system used
Windows XP Home Edition Version 5.1 SP 2

Software prerequisites
Apache 2.0.49

Procedure

  1. Open the C:\Tools\Apache Group\Apache2\conf\httpd.conf file and enable the mod_status module by uncommenting line:
    LoadModule status_module modules/mod_status.so

    To obtain a full report (only if you need more information) with current status information you need to uncomment line:
    ExtendedStatus On

  2. The following line should also be added in the httpd.conf file:

    Listen 80

    ServerAdmin [email protected]

    ServerName www.mobilefish.com:80

    DirectoryIndex index.html index.html.var index.shtm index.htm

    NameVirtualHost 192.168.1.100

    <VirtualHost 192.168.1.100:80>
       ServerAdmin webmaster@mobilefish.com
       DocumentRoot c:/mobilefish_web
       ServerName www.mobilefish.com
       ErrorLog logs/www.mobilefish.com-error_log
       #TransferLog logs/www.mobilefish.com-access_log
       CustomLog "|c:/weblogs/rotatelogs.exe
          c:/weblogs/www.mobilefish.com-access_%y%m%d.log 86400" combined
       <Directory "c:/mobilefish_web">
           Options +Includes
           AddType text/html shtm
           AddOutputFilter Includes shtm
       </Directory>
       <Location /server-status>
          SetHandler server-status
          # Order deny,allow
          # Deny from all
          # Allow from .mobilefish.com
       </Location>
    </VirtualHost>

    View the updated httpd.conf file. In this example the per-directory config is used.



  3. Restart Apache.

  4. In a browser type: https://www.mobilefish.com/server-status

    See the Apache Server Status.