25 optimization tips that make Apache performance significantly better

  
                  Developers know that Apache has always been the dominant position in the field of web servers. This article mainly introduces 25 optimization techniques that make Apache performance significantly improved. Let's learn together with Xiaobian! The Apache section: 1. Remove unused modules. 2. Use mod_disk_cache NOT mod_mem_cache . 3. The flat architecture is configured with mod_disk_cache. 4. Install the appropriate Expires, Etag, and Cache-Control Headers. 5. Place the cache on a separate disk 6. Use pipe logs instead of direct records 7. Place the logs on separate disks 8. Use mod_gzip/mod_deflate . 9. Turn off HostnameLookups. 10. Avoid using hostnames in configs. 11. Use a persistent connection. 12. Do not set KeepAliveTimeout too high. 13. Disable .htaccess. 14. Allow symlinks. 15. Close ExtendedStatus. 16. Avoid wildcards in DirectoryIndex. OS part: 17. Improve Swapiness. 18. Increase the Write Buffer size. 19. Increase the maximum open file. Application section: 20. Set up front-end proxy for images and style sheets. 21. Use mod_passenger for rails. 22. Close safe_mode for php. 23. Do not use threaded mpm with mod_php. 24. Refresh buffer prerendering. 25. Frequently accessed data settings cache.
Copyright © Windows knowledge All Rights Reserved