Contact
Site: US UK AU |

How to create and manage Apache handlers

How to create and manage Apache handlers

Overview 
This article explains how to use SiteWorx to create your own custom Apache handlers and associated extensions and how to edit or delete an existing handler.

Notes

  • Attention: If you do not have experience working with .htaccess files, it is highly recommended that you contact support@nexcess.net for assistance. If handled incorrectly, an .htaccess file can cause major problems for your website.
  • Always back up your .htaccess file before making changes to it.
  • A handler is an internal Apache command that dictates what action the Apache server should perform when a certain file type is called for. When Apache sees a file, it has an action built in for that file type, and will perform the correct action.

Creating an Apache handler

  1. Log in to your SiteWorx account.
  2. On the main menu, click Hosting Features > Htaccess.
  3. Click the Handlers link for the directory that you want to manage.
  4. In the Handler field, type the Apache handler command to use for the given extensions. As you type, the field will auto-complete with the various default handler commands in Apache.
  5. In the Extensions field, type the extension or extensions to associate with the entered handler command. To enter more than one extension, separate each by either a space or comma.
  6. Click Add.

Editing an existing Apache handler

  1. Log in to your SiteWorx account.
  2. On the main menu, click Hosting Features > Htaccess.
  3. Click the Handlers link for the directory that you want to manage.
  4. Click the Edit link next to the handler command that you want to edit.
  5. In the Handler field, type the Apache handler command for use with the given extensions. As you type, the field will auto-complete with the various default handler commands in Apache.
  6. In the Extensions field, type the extension or extensions to be associated with the handler command. To enter more than one extension, separate each by either a space or comma.
  7. After finishing the changes, click Save.

Deleting an Apache handler command

  1. Log in to your SiteWorx account.
  2. On the main menu, click Hosting Features > Htaccess.
  3. Click the Handlers link for the directory that you want to manage.
  4. Click the check box next to each handler command that you want to delete. You can also click the Check All link to quickly select all of the handlers at once.
  5. In the with selected: drop-down menu, select Delete.
  6. When prompted for confirmation, click the Delete button.

External Resources

For more information about Apache Handlers, refer to this page on the Apache Web site.
 
For 24-hour assistance any day of the year, contact our Support Team by email or through the Client Portal.
Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
 
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
How to block IPs with .htaccess
Added on Tue, Aug 6, 2013
How to create and manage MIME types
Added on Tue, Aug 6, 2013
How to redirect a non-WWW web address to a WWW web address
Added on Fri, Aug 2, 2013
What is .htpasswd?
Added on Mon, Nov 10, 2014
How to allow or block hostnames and IP addresses
Added on Wed, Jul 31, 2013
How to manage index files
Added on Mon, Aug 5, 2013
How to enable and disable .htaccess files with SiteWorx
Added on Mon, Aug 5, 2013
Creating and managing custom error pages
Added on Tue, Jul 30, 2013
.htaccess rewrite commands
Added on Tue, Mar 27, 2018
How to create URL redirect rules
Added on Tue, Jul 30, 2013