Databases Reference
In-Depth Information
LoadModule dbm auth module libexec/mod auth dbm.so
LoadModule digest module libexec/mod digest.so
LoadModule proxy module libexec/libproxy.so
LoadModule cern meta module libexec/mod cern meta.so
This is taken from my server configuration—yours may be slightly different. Now you can add the
mod gzip module:
LoadModule gzip module libexec/mod gzip.so
You should also copy the sample mod gzip.conf to the Apache configuration file directory. Although
the sample mod gzip.conf should work fine in most cases, I usually make a few changes, one of which is
adding the following line:
mod gzip item include handler ^pls handler$
The purpose of this line is to include compression on anything that is being handled by the
pls handler . The mod plsql handler is responsible for handling requests for our DAD, which is how our
APEX sessions are handled. We have added this because we've found in certain cases, where the MIME
type is not detected properly, some items will not be compressed, even though they may be highly
compressible items, such as CSS and JavaScript files. You may want to check whether this line is suitable
for your own configuration (you can determine this through testing).
Next, you need to include the mod gzip configuration by adding the following line to the main
Apache configuration file ( httpd.conf ):
# Include the mod gzip settings
include "/home/ohs/OraHome 1/ohs/conf/mod gzip.conf"
Make sure you use the correct path to the mod gzip.conf file for your own installation. Now reload
the OHS and you should have a working installation of mod gzip .
Note If you get a warning along the lines of “This module might crash under EAPI!” you don't need to worry.
The module seems to work fine despite this warning. If you want to get rid of the error, you can try recompiling the
module yourself.
Now if you retest the application in YSlow you should see whether the gzip compression has been
enabled correctly and what the impact has been. You can see in Figure 1-13 that we now get an A grade
for the Compress components with gzip test. Excellent!
Search WWH ::




Custom Search