Skip to main content

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:

cd /etc/httpd/conf.d/

then create the file with .conf extension

touch server-status.conf

or create and edit it directly, from any path

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

Open it and add the following :

ExtendedStatus On

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

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

</Location>

assign a password:

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

restart apache and verify that everything is correct:

image.png