Hello Docker users!
Does somebody know how you can add directory listing to the php:7.2-apache
image?
With directory listing I mean you get to see all the files and directories in a certain directory.
To run the image I use the following command:
podman run --rm --detach -p 8080:80 --name webserver -v ~/Webserver:/var/www/html:Z php:7.2-apache
The command works fine and the PHP files in the local direcory Webserver
are generated correctly.
According to the Apache configuration inside of the container (see below), it should show the files and directories (Options Indexes
) but somehow it doesn’t work?
Content of the file /etc/apache2/apache2.conf
:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
Somebody know how I can ‘activate’ the directory listing?
Thanks for reading!