# Configuration

To be able to use the apache service (httpd) we need to make the following configuration

enable status in the apache configuration file, it is necessary to create the file inside the conf.d path to access:

```bash
cd /etc/httpd/conf.d/
```

then create the file with .conf extension

```bash
touch server-status.conf
```

or create and edit it directly, from any path

```bash
vim /etc/httpd/conf.d/server-status.conf
```

Open it and add the following :

```bash
ExtendedStatus On

<Location "/server-status">
    SetHandler server-status
    Require valid-user

    AuthType Basic
    AuthName "Restricted Access"
    AuthUserFile /etc/httpd/.htpasswd

</Location>
```

assign a password:

```bash
sudo htpasswd -c /etc/httpd/.htpasswd admin
```

restart apache and verify that everything is correct:

[![image.png](https://pandorafms.com/guides/public/uploads/images/gallery/2025-06/scaled-1680-/1GWimage.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2025-06/1GWimage.png)