APACHE (4)

Source: Internet
Author: User
4.5 mod_cgi Module
This module is included in the Mod_cgi.c file, and is compiled according to the preset. It provides
The ability to execute CGI scripts. Any MIME type is application/x-httpd-cgi
Files will be processed by this module.
4.5.1 Summary
Any file that has a MIME type of application/x-httpd-cgi will be treated as
CGI scripts, which are executed by the server, and pass the output back to the client. Files can be accessed by
Use the name of the AddType defined by the command, or by placing it in the Scriptalias
Set of directories to become this form.
When the server starts a CGI script, it adds a name called Document_root
of environmental parameters. This parameter will contain the contents of the DocumentRoot configuration.
4.5.2 CGI Environment Parameters
This server will set up the CGI environment parameters defined in the CGI specification, with the following
But the book:
Remote_host
This is only set when the server does not match the Minimal_dns compile.
Remote_ident
This is only set when IdentityCheck is set to ON.
Remote_user
This is only set when the CGI script needs to be recognized.
4.6 Mod_dir Module
This module is included in the Mod_dir.c file, and is compiled according to the preset. It provides
Used as a directory index.
4.6.1 Summary
This module controls the index of the directory. The index of a directory can have two sources:
。 A file written by a user, typically a file called index.html
。 The drectoryindex instruction sets the name of the file.
。 The other is the list produced by the server. Other commands control this list.
Format. AddIcon, addiconbyencoding and Addiconbytype are
is used to set up a list of diagrams used to display different file types;
Out of the file type, showing the first conforming diagram listed.
4.6.2 adddescription
Syntax: adddescription string File File ...
Used in: Server config, virtual host, directory,. htaccess
Demand: Indexes
Status: Basics
Module: Mod_dir
This is the description to be displayed for a file to be used for symbolic indexing (fancyindexing).
A file is a file name, a partial filename, an alternate character representation, or
The full file name.
The string is enclosed in double quotes ("). For example:
Adddescription "The planet Mars"/web/pics/mars.gif
4.6.3 AddIcon
Syntax: AddIcon icon name ...
Used in: Server config, virtual host, directory,. htaccess

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.