Knowledge Base

Apache web server configuration

A2 Hosting packages run on the Apache web server. Get solutions and answers to your Apache configuration questions here.

Using .htaccess files

Learn what .htaccess files are, and how you can use them to customize the web server's configuration for your web site.

Default directory index page

The DirectoryIndex directive in an .htaccess file specifies the default page to display when a visitor requests a directory on your web site. Learn how to set this directive here.

Directory index listings

You can enable directory index listings for directories on your web site that do not have a default directory index page. Learn how here.

Data compression using the mod_deflate module

You can use data compression to reduce page load times and the amount of bandwidth your site uses. Learn how to enable the Apache mod_deflate module using an .htaccess file in this article.

‘403 Forbidden’ error message

Learn how to resolve a "403 Forbidden" error message that may occur when users try to visit your web site. The site's error logs may indicate that the web server cannot access the .htaccess file, or you may be missing an index page.

Pathname information and the AcceptPathInfo directive

Some software packages use URLs with trailing pathname information. To enable support for pathname information in URLs, you use the AcceptPathInfo Apache directive in an .htaccess file.

Troubleshooting CGI scripts

Do you have a CGI script that isn't working? This article shows some steps you can take to get that script running.

Changing the document root directory

By default, a shared hosting account's document root directory for the primary domain is the public_html directory. This article describes how to point the primary domain's document root to a different directory.

Adding or removing the www prefix in domain URLs

You can configure your web site to automatically add or remove the www prefix from URLs, and this article shows you how.

Viewing Apache log files

If you have a dedicated server, VPS, or Cloud VPS, you can view the raw Apache log files for your web server. Learn more about these files here.

Rewriting URLs with the mod_rewrite module

You can use Apache's URL rewrite functionality for a number of scenarios, such as improving URL readability and enhancing search engine friendliness.

Using Server-Side Includes (SSI)

You can use Apache Server-Side Includes (SSI) to generate dynamic page content and more. Learn how in this article.

Using the mod_speling Apache module

There are certain scenarios where filenames may have different cases. For example, if you are migrating a site from Microsoft Windows, you may experience problems with filename case sensitivity. This article explains how to use Apache's mod_speling module to work around these issues. Please note that this article only applies to semi-managed products.

Modifying HTTP headers

You can use .htaccess directives to modify the HTTP headers Apache sends to a client. Learn how here.

Configuring caching with the mod_expires module

You can use Apache's document expiration functionality to control caching behavior and help improve site performance.

Disabling entity tags (ETags)

Learn how to prevent your web site from sending entity tags (ETags) in the HTTP headers.

Using keep-alive connections to improve performance

Keep-alive connections can help improve site performance, and this article shows you how to enable them.

Controlling site access by country

There may be times when you want to allow or block access to your site based on a visitor's country. This article shows you how.