BuycPanel Blog

BuycPanel Blog

Latest news and updates

What is Apache Handler?

Posted by Allura on 07 11 2018.

Introduction
This feature is for cPanel and WHM version 64. One can navigate to (Home >> Advanced >> Apache Handlers) to work on this feature.

It controls how one’s particular site’s Apache web server software manages certain file types and file extensions. Apache is able to handle CGI scripts and server-parsed files. The file extensions for these files comprises .cgi, .pl, .plx, .ppl, .perl, and .shtml.

Apache can configure to use an existing handler to handle a new file type. For this, one needs to manually add the handler and extension in this interface.

Create An Apache Handler
Steps:

 	In the Handler text box, one can enter the handler name. The cPanel will include the built-in handler mentioned below:
 	default-handler — It will send the file and use Apache’s default handler for static content.
 	send-as-is — It will send the file with HTTP headers intact.
 	cgi-script — It will handle the file as a CGI…

Introduction

This feature is for cPanel and WHM version 64. One can navigate to (Home >> Advanced >> Apache Handlers) to work on this feature.

It controls how one’s particular site’s Apache web server software manages certain file types and file extensions. Apache is able to handle CGI scripts and server-parsed files. The file extensions for these files comprises .cgi, .pl, .plx, .ppl, .perl, and .shtml.

Apache can configure to use an existing handler to handle a new file type. For this, one needs to manually add the handler and extension in this interface.

Create An Apache Handler

Steps:

  • In the Handler text box, one can enter the handler name. The cPanel will include the built-in handler mentioned below:
  • default-handler — It will send the file and use Apache’s default handler for static content.
  • send-as-is — It will send the file with HTTP headers intact.
  • cgi-script — It will handle the file as a CGI script.
  • imap-file — It will parse the file as an imagemap rule file.

One can read Apache’s documentation to get more information.

  • server-info — It will retrieve the server’s configuration information.
  • server-parsed — It will parse the file for server-side includes.
  • server-status — It will retrieve the server’s status report.
  • type-map — It will parse the file as a type map file.
  • Then one can enter the file extension in the Extension(s) text box.
  • A file extension usually consists of the letters after the dot (.) in a file name (as for example, fileextension).
  • Contains space-separate multiple extensions (for example, .cgi .pl .ppl).
  • Then, click on Add.

It must be noted that this interface does not allow one to create custom Apache handlers.

Remove An Apache Handler

Steps:

  • Firstly, one needs to click on Delete available under the Remove heading for the appropriate handler in the User Defined Apache Handlers

Then, click on Yes.

It must be noted that one cannot remove the file extensions that are automatically handled by Apache.

Conclusion

This feature manages certain file types and extensions technically.