When setting up a web server, if it’s one of the following
- Apache
- Google App Engine (GAE)
- Internet Information Services (IIS)
- lighttpd
- Nginx
- Node.js
you may want to start or compare your config with some boilerplate configs you can find at
https://github.com/h5bp/server-configs
Many best practices and optimization are included in them which can save you a lot of time.