Freedom The Open Source Way Contribute Articles or News to OSForgeOSForge HomeLogout from Forums
Contacting OSForgeOSForge HomeAbout OSForge
  

Root
Contribute News
Learning Corner
Linux Distributions
Linux Common FAQ's
Discussion Forums
Community Gallery
Links Directory
Search OSForge
Networking
Industry Updates
Linux & Open Source
Opinions
Press Release
Programming
Security
Web Development

White Paper
DAKCS Software Systems Introduces Innovative Customer Training Program
Zarafa and ClearCenter Announce ClearOS Integration
Zarafa Brings Browser-Based Enterprise Collaboration Client to CeBIT
Zarafa Catalyses Software Development Collaboration by Launching git.zarafa.com
Zarafa and LPI Partner on Training and Certification Program
Likewise to Grow Seattle-Area Workforce
Likewise CTO: Unleash and Secure Unstructured Data
Likewise Names Leading Open Source Voice as CTO
Launched: Zarafa Collaboration Platform 7.0 and Zarafa Archiver

View More »

Optimizing your apache server
By : Andrea Find more article by Andrea on Interne
Sunday the 5th, August 2001 at 07:49 PM (EDT)
Send this Story to a Friend Readers TalkBack (0) - 1155 Reads

Printer Friendly Page Printable format
Send this Story to a Friend Foward to Email

This is one way of many optimizing Apache Webserver speed.

The mod_mmap_static module of Apache, is a special module with the Apache distribution named mod_mmap_static that can be used to improve the performance of your Web Server. This module works by providing mappings of a statically configured list of frequently requested, but not changed, files in your RootDirectory. So, if files displayed by Apache don't change often, you can use this module to memory-map the static documents and increase the speed of your Apache web server.

It's important to note that the mod_mmap_static module of Apache must be enabled during the configuration and compilation time of Apache before you can use it. If you have followed our steps described in the configuration and compilation time section above, this is already in Apache --add-module-../mod_mmap_static.c.

  1. To memory-map static documents, use the following command:
    [root@deep ]/# find /home/httpd/ona -type f -print | sed -e 's/.*/mmapfile &/' /etc/httpd/conf/mmap.conf

    The /home/httpd/ona is the RootDirectory, or to be more precise, the directory out of which you will serve your documents, and the /etc/httpd/conf/mmap.conf is the location where we want to create this file, mmap.conf, that contains a static memory-map of all documents under our RootDirectory.



  2. Once the mmap.conf file has been created
    under the location where we have chosen to keep this file, we must include
    it in the httpd.conf file of Apache to be able
    to use its features on our web server. Edit the
    httpd.conf
    file, vi /etc/httpd/conf/httpd.conf
    and add the line:
    Include conf/mmap.conf




See your Apache documentation for more information about the use of
mod_mmap_static. Remember that this feature must be only used when you
serve documents that don't change often on your web site.




You must restart the Apache web server for the changes to take effect:


  
Reader Rating from 1-5

 

Poor very 

1

2

3

4

5
 very Excellent

Talkback

Post Your Talkback | View All Talkback (0 Posted)


 Currently there are no Talkback posted on "Optimizing your apache server", Click here to be the first to post a talkback.


 
Scroll Up

   About | Term of Use | Privacy | Contact us | Tell a Friend | Advertise  

OSForge News RSS Feed