Binding to Addresses and Ports

Binding to Addresses and Ports Configuring Apache HTTP Server to listen on specific addresses and ports. Overview Related Modules Related Directives core mpm_common <VirtualHost> Listen When httpd starts, it binds to some port and address on the local machine and waits for incoming requests. By default, it listens to all addresses on the machine. However, it may need to be told to listen on specific ports, or only on selected addresses, or a combination of both. This is often com

Authentication and Authorization

Authentication and Authorization Authentication is any process by which you verify that someone is who they claim they are. Authorization is any process by which someone is allowed to be where they want to go, or to have information that they want to have. For general access control, see the Access Control How-To. Related Modules and Directives There are three types of modules involved in the authentication and authorization process. You will usually need to choose at least one module from

apxs

apxs - APache eXtenSion tool apxs is a tool for building and installing extension modules for the Apache HyperText Transfer Protocol (HTTP) server. This is achieved by building a dynamic shared object (DSO) from one or more source or object files which then can be loaded into the Apache server under runtime via the LoadModule directive from mod_so. So to use this extension mechanism your platform has to support the DSO feature and your Apache httpd binary has to be built with the mod_so module

apachectl

apachectl - Apache HTTP Server Control Interface apachectl is a front end to the Apache HyperText Transfer Protocol (HTTP) server. It is designed to help the administrator control the functioning of the Apache httpd daemon. The apachectl script can operate in two modes. First, it can act as a simple front-end to the httpd command that simply sets any necessary environment variables and then invokes httpd, passing through any command line arguments. Second, apachectl can act as a SysV init scri

Apache's Handler Use

Apache's Handler Use This document describes the use of Apache's Handlers. What is a Handler Related Modules Related Directives mod_actions mod_asis mod_cgi mod_imagemap mod_info mod_mime mod_negotiation mod_status Action AddHandler RemoveHandler SetHandler A "handler" is an internal Apache representation of the action to be performed when a file is called. Generally, files have implicit handlers, based on the file type. Normally, all files are simply served by the server, but certain

An In-Depth Discussion of Virtual Host Matching

An In-Depth Discussion of Virtual Host Matching This document attempts to explain exactly what Apache HTTP Server does when deciding what virtual host to serve a request from. Most users should read about Name-based vs. IP-based Virtual Hosts to decide which type they want to use, then read more about name-based or IP-based virtualhosts, and then see some examples. If you want to understand all the details, then you can come back to this page. Configuration File There is a main server whi

Advanced Techniques with mod_rewrite

Advanced Techniques with mod_rewrite This document supplements the mod_rewrite reference documentation. It provides a few advanced techniques using mod_rewrite. Note that many of these examples won't work unchanged in your particular server configuration, so it's important that you understand them, rather than merely cutting and pasting the examples into your configuration. URL-based sharding across multiple backends Description: A common technique for distributing the burden of server lo

Access Control

Access Control Access control refers to any means of controlling access to any resource. This is separate from authentication and authorization. Related Modules and Directives Access control can be done by several different modules. The most important of these are mod_authz_core and mod_authz_host. Also discussed in this document is access control using mod_rewrite. Access control by host If you wish to restrict access to portions of your site based on the host address of your visitors,

ab

ab - Apache HTTP server benchmarking tool ab is a tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP) server. It is designed to give you an impression of how your current Apache installation performs. This especially shows you how many requests per second your Apache installation is capable of serving. Synopsis ab [ -A auth-username:password ] [ -b windowsize ] [ -B local-address ] [ -c concurrency ] [ -C cookie-name=value ] [ -d ] [ -e csv-file ] [ -f protocol ] [ -g gnup

.htaccess files

Apache HTTP Server Tutorial: .htaccess files .htaccess files provide a way to make configuration changes on a per-directory basis. .htaccess files Related Modules Related Directives core mod_authn_file mod_authz_groupfile mod_cgi mod_include mod_mime AccessFileName AllowOverride Options AddHandler SetHandler AuthType AuthName AuthUserFile AuthGroupFile Require You should avoid using .htaccess files completely if you have access to httpd main server config file. Using .htaccess files sl