Optimizing your apache server
| 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.
- 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.
- 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:
| | |
|
|
Currently there are no Talkback posted on "Optimizing your apache server", Click here to be the first to post a talkback.
|
|
|
|   |