Friday, August 26, 2011

Configuration Directives in httpd.conf for file caching in Centos

The Apache HTTP Server configuration file is /etc/httpd/conf/httpd.conf. The httpd.conf file is well-commented and mostly self-explanatory. The default configuration works for most situations; however, it is a good idea to become familiar some of the more important configuration options.

# 480 weeks

Header set Cache-Control "max-age=290304000, public"


also like this

Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
ExpiresDefault A300

Expires A86400


Expires A2592000





No comments:

Post a Comment