httpd.conf

From Wikipedia, the free encyclopedia
Jump to: navigation, search

httpd.conf is a configuration file which is used by the Apache HTTP Server. It stores information on various functions of the server, which can be edited by removing or adding a number sign "#" at the beginning of the line, thus setting values for each directive.

The httpd.conf file can be located on any UNIX-based system that complies with the Filesystem Hierarchy Standard under the following path: /etc/httpd/httpd.conf.

This file, httpd.conf was once used in Microsoft's Internet Information Services

There is a module, invented and originally written in April 1996, called mod_rewrite that is designed to provide a rule-based rewriting engine, based on a regular expression parser, to rewrite requested URLs on the fly. This module operates on the full URLs (including the path-info part) both in per-server context (httpd.conf) and per-directory context (.htaccess) and can generate query string parts on result. The rewritten result can lead to internal sub-processing, external request redirection or to an internal proxy throughput. It has been described as "voodoo," and Brian Behlendorf of the Apache Group has said, "The great thing about mod_rewrite is it gives you all the configurability and flexibility of Sendmail. The downside to mod_rewrite is that it gives you all the configurability and flexibility of Sendmail."[1]

[edit] Commands

The RewriteRule, RewriteCond and alias commands can be used to configure URLs. The latter command is simpler and more reliable. However, it may require root access

[edit] References

[edit] External links

Personal tools
Namespaces
Variants
Actions
Navigation
Interaction
Toolbox
Print/export
Languages