# Header

## Icons

To get back icons in index pages run next command:

```bash
sudo apk add apache2-icons
```

## Title length

To unlimite displayed file name's length add next lines in `/etc/apache2/httpd.conf` file:

```bash
IndexOptions NameWidth=*
```

## Basic auth

Install `apache2-utils` and create file for passwords with first user:

```bash
apk add apache2-utils
htpasswd -c /etc/apache2/.htpasswd user_name
```

Or without `-c` to add one more user. Because `-c` rewrite entiry file.

Then add this to your `/etc/apache2/conf.d/example.conf` file:

```
<Directory "/var/www/localhost/htdocs/private">
    AuthType Basic
    AuthName "Restricted Area"
    AuthBasicProvider file
    AuthUserFile "/etc/apache2/.htpasswd"
    Require user user_name
</Directory>
```

## Sources
- https://httpd.apache.org/docs/2.4/howto/auth.html
- https://www.howtogeek.com/devops/how-to-setup-basic-http-authentication-on-apache/
