English Spanish
To reload the configuration and immediately terminate any active connections, enter the following command as `root`:
#{nbsp}systemctl kill --kill-who=main --signal=HUP httpd
Verifying the Service Status
indexterm:[Apache HTTP Server,checking status] To verify that the `httpd` service is running, type the following at a shell prompt:
#{nbsp}systemctl is-active httpd.service
Editing the Configuration Files
When the `httpd` service is started, by default, it reads the configuration from locations that are listed in xref:Web_Servers.adoc#table-apache-editing-files[The httpd service configuration files].
The httpd service configuration files
|indexterm:[Apache HTTP Server,files,/etc/httpd/conf/httpd.conf]
`/etc/httpd/conf/httpd.conf`|The main configuration file.
|indexterm:[Apache HTTP Server,directories,/etc/httpd/conf.d/]
`/etc/httpd/conf.d/`|An auxiliary directory for configuration files that are included in the main configuration file.
Although the default configuration should be suitable for most situations, it is a good idea to become at least familiar with some of the more important configuration options. Note that for any changes to take effect, the web server has to be restarted first. See xref:Web_Servers.adoc#s3-apache-running-restarting[Restarting the Service] for more information on how to restart the `httpd` service. indexterm:[Apache HTTP Server,checking configuration] To check the configuration for possible errors, type the following at a shell prompt:
#{nbsp}apachectl configtest
Syntax OK
To make the recovery from mistakes easier, it is recommended that you make a copy of the original file before editing it.
Common httpd.conf Directives
indexterm:[Apache HTTP Server,files,/etc/httpd/conf/httpd.conf] The following directives are commonly used in the `/etc/httpd/conf/httpd.conf` configuration file:
indexterm:[Apache HTTP Server,directives,<Directory>] [option]`<Directory>`
The [option]`<Directory>` directive allows you to apply certain directives to a particular directory only. It takes the following form:
&lt;Directory _directory_pass:attributes[{blank}]&gt;

The _directory_ can be either a full path to an existing directory in the local file system, or a wildcard expression.
This directive can be used to configure additional `cgi-bin` directories for server-side scripts located outside the directory that is specified by [option]`ScriptAlias`. In this case, the [option]`ExecCGI` and [option]`AddHandler` directives must be supplied, and the permissions on the target directory must be set correctly (that is, `0755`).
Using the <Directory> directive