fsakbas / The-Perfect-Apache-Configuration

Whenever I setup a LAMP stack, here is my http.conf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Perfect Apache Configuration

I've spent quite a bit of time compiling what I find to be optimial to me and my server. Feel free to fork this and make it your own.

Installation

Copy and paste the contents of http.conf into /apache2/httpd.conf

You can also copy and paste into .htaccess (however this is slower!)

Credits

- HTML5BoilerPlate: https://github.com/h5bp/html5-boilerplate/ - W3 Edge: http://www.w3-edge.com/ - Yahoo! Best Practices: http://developer.yahoo.com/performance/rules.html - Caching Tutorial: http://www.mnot.net/cache_docs/ - Personal experience running Amazon AWS instances

CHANGE LOG

v1.2 - 2013.07.01

  • Added DefaultCharset
  • Added Header append Vary: Accept-Encoding

v1.1 - 2012.06.13

  • Moved CSS and JS from 1 day to 1 week

v1.0 - 2012.06.05

  • Initial release

Disclaimer

- If you break Apache, then you may not have all the modules turn on. - This configuration works best for my needs. Your needs may differ.

About

Whenever I setup a LAMP stack, here is my http.conf