UnSeulT / server-configs-apache

Apache HTTP server boilerplate configs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status devDependency Status

Apache Server Configs is a collection of boilerplate configurations that can help your server improve the web site's performance and security, while also ensuring that resources are served with the correct content-type and are accessible, if needed, even cross-domain.

Getting Started

There are a few options for getting the Apache server configs:

  • Download the zip archive
  • Install them via:
    • npm: npm install --save-dev apache-server-configs
    • Bower: bower install --save-dev apache-server-configs

Usage

If you have access to the main server configuration file (usually called httpd.conf), you should add the logic from the .htaccess file in, for example, a <Directory> section in the main configuration file. This is usually the recommended way, as using .htaccess files slows down Apache!

If you don't have access, which is quite common with hosting services, just copy the .htaccess file in the root of the website.

Also note that some configurations won't have any effect if the appropriate modules aren't enabled. So, in order for everything to work as intended, you need to ensure the you have the following Apache modules enabled:

For more detailed information on configuration files and how to use them, please check the appropriate Apache documentation:

Support

  • Apache v2.2.0+

  • Browsers:

    • Chrome
    • Firefox 4+
    • Internet Explorer 8+
    • Opera 12+
    • Safari 5+

Contributing

Anyone and everyone is welcome to contribute, but before you do, please take a moment to review the guidelines.

Acknowledgements

Apache Server Configs is only possible thanks to all the awesome contributors!

License

The code is available under the MIT license.

About

Apache HTTP server boilerplate configs

License:MIT License


Languages

Language:JavaScript 44.0%Language:ApacheConf 42.2%Language:Shell 13.8%