Apache - Configuration (httpd.conf)

Card Puncher Data Processing

About

All the Apache configuration are in one directory, the conf directory. with one main entry point known as the httpd.conf file.

From this file, all other configuration files are included. It means that you could even have only one configuration file.

With this configuration file, you can also start several instance of Apache if you give it as option.

Example

Define SRVROOT "c:/Apache24"

ServerRoot "${SRVROOT}"

#Listen 12.34.56.78:80
Listen 80

#LoadModule access_compat_module modules/mod_access_compat.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so

Management

Location

The location of the configuration directory will differ depending on:

  • how Apache was compiled
  • how Apache was started (You can give the configuration as option)

For instance:

  • /etc/apache2/apache2.conf
  • /usr/local/apache2/conf/httpd.conf
  • C:\Apache24\conf\httpd.conf

Format

The apache configuration file is a well specified format that may also be used elsewhere as configuration file.

The syntax is defined in the documentation.





Discover More
Card Puncher Data Processing
(Apache|Oracle HTTP Server|Oracle Web Cache) (httpd)

Apache is a web server. The executable is httpd. This section regroups some article such as: a manual installation on Windows with php How to add virtual host or rewrite URL to configuration...
Card Puncher Data Processing
Apache - HTTP Header (mod_header module)

mod_header is a apache module that permits to set HTTP header. If you add the below code snippet in your htaccess file, you will set the following response header the cache-control header and...
Card Puncher Data Processing
Apache - Installation of a Private Key and Certificate (mod_ssl)

mod_ssl A private key and a certificate. For a self signed certificate, see When Apache with mod_ssl is installed, it creates several directories in the Apache config directory. Copy the...
Card Puncher Data Processing
Apache - Module

A module is handler (plugin) to the apache server They are in the modules directory and can be loaded with the LoadModule command in the conf file. Example: To list all modules, execute...
Card Puncher Data Processing
Application - Configuration File

Configuration file are files used to: store command argument / enviroment variable or pass values They have a structural hierarchy where each parent node is generally known as a section. There...
Cors Flowchart
Browser - Cross Origin Resource Sharing (CORS)

Cross-origin resource sharing (CORS) is a mechanism that: * allows a HTTP server * to control the cross-origin requests executed by a browser. In short, a HTTP server may allow or not to receive...
Card Puncher Data Processing
How to enable CORS on a Apacher Web Server?

This article shows you how to enable CORS for an Apache Web Server To configure cors on a Apache server, you may do it: in a file or via the module. in the Apache configuration file...
Phpinfo Fastcgi
How to install the Apache FastCgi module on Windows ?

This article will show you how to install FastCgi on a Apache HTTP server thanks to the FastCGI Module of Apache It's a configuration step in the Windows installation. The FastCgI module is not...
Php Home Path System User
Installation of Apache on Windows 10 with Apache Lounge

This article shows you how easy it is to install apache on Windows 10
Data System Architecture
Key Value (or Property)

Key value data (known also as Property) are value that have a direct relation with their key. They can be seen as a set of data modeling attribute. This kind of data is stored: in code as: an collection...



Share this page:
Follow us:
Task Runner