Can I modify the Apache webserver configuration?

  • September 13, 2017
  • 0 Comments

You are not able to make changes to Apache webserver configuration through the httpd.conf file. Our server has a default httpd.conf file already in place for a default configuration for all customers. To make changes to the webserver configuration, you will need to create a .htaccess file.

Using .htaccess you can make specific changes to the webserver configuration such as enabling file/folder listing publicly, define custom error pages, redirect incoming traffic, etc. In this way, you can make changes that will only affect your websites. The .htaccess file is recursive, meaning that the configuration settings within the file will apply to the folder where the .htaccess file is saved as well as subfolders and files.

The following is a list of directives which can be used in a ".htaccess" file:

Some examples:

Enable file/folder listing:

Options +Indexes

Turning "spell checking" off. This is on by default and will therefore load http://domain.com/file.html if http://domain.com/file1.html does not exist:

CheckSpelling off

Allow other file extensions to be handled as CGI scripts:

AddHandler cgi-script .cgi .php

Allow other file extensions for SSI (Server Side Include) scripts:

AddType text/x-server-parsed-html .shtm .shtml .htm .html


How helpful was this article to you?