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
Moab Workload Manager Claims Title as World’s First Petaflop Scheduler
Moab Workload Manager Claims Title as World’s First Petaflop Scheduler
xTuple ERP Exceeds 100,000 Downloads, Readies Version 3.0 Beta
Open-Xchange to Deliver Collaboration Solution Integrated With Parallels Automation
OpenKM - Document Mangement announces version 2.0
SugarCRM Manages End-to-End SaaS Offering with Zenoss
Linux Foundation’s Annual Collaboration Summit Kicks Off
Engine Yard Kicks Off Hackfest Series for Ruby Developers
Plat'Home Launches First Linux-based Eco-Friendly Servers In United States

View More »

Optimizing your apache server
By : Andrea Find more article by Andrea on Internet-Networking
Sunday the 5th, August 2001 at 07:49 PM (EDT)
Send this Story to a Friend Readers TalkBack (0) - 693 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