no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | centos_apache [2015/06/01 22:00] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== CentOS Optimization: | ||
| + | |||
| + | * [[CentOS]] | ||
| + | * [[Apache]] | ||
| + | * [[Apache Security]] | ||
| + | * [[Apache Tuning]] | ||
| + | * [[Apache Worker MPM PHP CGI Suexec Setup]] | ||
| + | * [[CentOS Apache Security]] | ||
| + | * [[CentOS Apache Optimization]] | ||
| + | ==== CPanel Installations ==== | ||
| + | |||
| + | If you are modifying an Apache configuration that is modified by CPanel, then you will need to use the CPanel interface to make changes. | ||
| + | |||
| + | Additionally, | ||
| + | |||
| + | Here are some sample configurations that you would want to add. | ||
| + | |||
| + | == AWstats == | ||
| + | |||
| + | < | ||
| + | Alias /awstats "/ | ||
| + | < | ||
| + | Order deny,allow | ||
| + | Deny from all | ||
| + | Allow from 1.2.3.4 | ||
| + | Allow from 127.0.0.1 | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | == server-info == | ||
| + | |||
| + | < | ||
| + | < | ||
| + | SetHandler server-info | ||
| + | Order deny,allow | ||
| + | Deny from all | ||
| + | Allow from 1.2.3.4 | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | == Apache security == | ||
| + | |||
| + | < | ||
| + | RequestHeader unset Range | ||
| + | RequestHeader unset Request-Range | ||
| + | ContentDigest On | ||
| + | FileEtag None | ||
| + | TraceEnable Off | ||
| + | </ | ||
| + | |||
| + | == Apache tuning == | ||
| + | |||
| + | < | ||
| + | HostnameLookups Off | ||
| + | EnableMMAP On | ||
| + | EnableSendfile On | ||
| + | </ | ||
| + | |||