Script Handler
LiteSpeed web server supports all scripting languages including Perl, PHP, Ruby, Python, Java Server Pages, etc. A script file is determined by the suffix of the file name. When a request refers to a script file, the web server will call the corresponding handler, external application bound to that specific suffix. Currently CGI, FastCGI, Web Server, LSAPI app, load balancer and Servlet Engine can be used as a script handler. FastCGI, Web Server, LSAPI app, load balancer and Servlet Engine must be predefined in External Application section. You can set up script handler at server or virtual host level. Server level script handler definition can only refer to external application defined at server level, and the definition is applied to all virtual hosts unless it is overridden in virtual host level. Virtual host level script handler definition is only applicable within that virtual host.
Table of Contents
Script Handler Settings | Suffix Type Handler Name
Suffix |
Description: Specifies the suffixes of script files. Suffix must be unique. Server will add a special MIME type implicitly for the first suffix in the list, the MIME type is like "application/x-httpd-[suffix]". For example, MIME type "application/x-httpd-php53" will be added for suffix "php53". It can be used to change script handler by assigning that MIME type to a context or file with certain suffix. Usually, Apache configuration directives, "AddType" or "ForceType", can be used in .htaccess to change script handler.
Syntax: Comma delimited list with period "." character prohibited
Tips: [Performance & Security] Only specifies the suffixes you really needed.
Type |
Description: Specifies the type of external application that processes these script files which can be CGI, FastCGI, Web Server, LSAPI app, Load balancer or Servlet Engine. For FastCGI, Web Server and Servlet Engine, the handler name need to be specified which is the external application name predefined in External Application section.
Syntax: Select from drop down list
Handler Name |
Description: Specifies the name of the external application that processes the script files when the handler type is FastCGI, Web Server, LSAPI, Load Balancer or Servlet Engine.
Syntax: Select from drop down list
Copyright © 2003-2011. Lite Speed Technologies Inc. All rights reserved.