Apache Web Server Configuration Files

May 12, 2019

Comments

Adsense

Adsense

Adsense

Adsense

The Apache web server is file-based configuration system so it is very easy to configure and you can configure dynamically for any new configuration. The Apache web server is configurable by placing directives in plain text configuration files.

Suggested Reading: Install Apache Web Server on Ubuntu System

Where are Apache’s configuration Files locating?

The location of the apache configuration file depends on Operating System versions.

The primary Apache configuration file name is called “httpd.conf” in centos and windows operating system, but in the Ubuntu operating system it is known as “apache2.conf”.

Here in this article, we will explain Apache configuration directories for all operating systems.

Apache Configuration Files in Ubuntu Operating System

The Apache configuration files are stored or located at /etc/apache2 in Ubuntu Operating System.

There are various files and directories available at /etc/apache2 directory, some of remarkable are here which you can find in any apache2 on any Ubuntu:

apache2.conf

It is the main apache configuration file for global apache settings.

conf-available

It is the apache directory contain available configuration files for the Apache webserver.

conf-enabled

This directory contains symlinks of files which are available in the conf-available directory and which you want to read by apache services.

envvars

It is the file for environment variable configuration or setup for Apache webserver.

magic

It is a text-based file that instructions for determining MIME type based on the first few bytes of a file.

mods-available

Apache modules configuration file directory contains all available modules files, configuration and settings.

mods-enabled

It is the directory which contains symlinks to the files in /etc/apache2/mods-available which are enabled modules.

ports.conf

It is a configuration file for Apache web server TCP ports configuration to access the application or application on the internet.

sites-available

It is an Apache configuration directory for a virtual host. All configured virtual host file to run on the apache web servers are available in this directory.

site-enabled

It holds symlink to /etc/apache2/sites-available which virtual host configuration is enabled to run on the live system.

Satish Kumar

Satish Kumar

I am Satish Kumar, Founder of LinuxConcept. Linux and F.O.S.S enthusiast, love to work on open source platform and technologies.

Adsense

Adsense

Adsense

Adsense

Adsense

Adsense

Adsense

Adsense

Adsense

Related Posts

How to add swap space on Ubuntu 20.04 Operating System

How to add swap space on Ubuntu 20.04 Operating System

The swap space is a unique space on the disk that is used by the system when Physical RAM is full. When a Linux machine runout the RAM it use swap space to move inactive pages from RAM. Swap space can be created into Linux system in two ways,...

2 Comments

2 Comments

  1. cars take

    This paragraph will help the internet people
    for setting up new webpage or even a blog from start to end.

    Reply
    • SATISH KUMAR

      Thanks

      Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

9 − 6 =

News & Updates

Join Our Newsletter

Adsense

Adsense

Adsense

Adsense