How do you add directory listing to the php:7.2-apache image?
Hello Podman developers, I signed up for this mailing list for a different question, but because I already solved that one, I will ask another. It’s not really related to Podman but to a specific container image. Hopefully you don't mind for one time. Question: Does somebody know how I can add directory listing to the [php:7.2-apache](https://hub.docker.com/_/php/) image? When I look inside the container it should be enabled (see code below) but when I add directories and files to the mounted volume (see command below) the directories and files aren't shown? Content of the file /etc/apache2/apache2.conf : <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory> I use the following command to run the image: podman run --rm --detach -p 8080:80 --name webserver -v ~/Webserver:/var/www/html:Z php:7.2-apache I don't know why the code Options Indexes doesn't work as expected. Does somebody has an idea? Your sincerely, Jeroen Verhoeckx -------------------------------------------------------- Support the independent web, use [Firefox](https://www.mozilla.org/en-US/firefox/new/)
On 2/3/22 13:28, Jeroen Verhoeckx via Podman wrote:
Hello Podman developers,
I signed up for this mailing list for a different question, but because I already solved that one, I will ask another. It’s not really related to Podman but to a specific container image. Hopefully you don't mind for one time.
Question: /Does somebody know how I can add directory listing to the /|/php:7.2-apache/ <https://hub.docker.com/_/php/>/image?/| || When I look inside the container it should be enabled (see code below) but when I add directories and files to the mounted volume (see command below) the directories and files aren't shown?
Content of the file /etc/apache2/apache2.conf : <Directory /var/www/> *Options Indexes* FollowSymLinks AllowOverride None Require all granted </Directory>
I use the following command to run the image: podman run --rm --detach -p 8080:80 --name webserver -v ~/Webserver:/var/www/html:Z php:7.2-apache
I don't know why the code *Options Indexes *doesn't work as expected. Does somebody has an idea?
Your sincerely,
Jeroen Verhoeckx
-------------------------------------------------------- /Support the independent web, use //Firefox/ <https://www.mozilla.org/en-US/firefox/new/>
_______________________________________________ Podman mailing list --podman@lists.podman.io To unsubscribe send an email topodman-leave@lists.podman.io
Can you podman exec a shell into the container and see if the files are present?
On Thu, Feb 03, 2022 at 06:28:23PM +0000, Jeroen Verhoeckx via Podman wrote:
Hello Podman developers,
I signed up for this mailing list for a different question, but because I already solved that one, I will ask another. It’s not really related to Podman but to a specific container image. Hopefully you don't mind for one time.
Question: Does somebody know how I can add directory listing to the [php:7.2-apache](https://hub.docker.com/_/php/) image?
When I look inside the container it should be enabled (see code below) but when I add directories and files to the mounted volume (see command below) the directories and files aren't shown?
Content of the file /etc/apache2/apache2.conf : <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory>
The "Indexes" option appears to be turned off later by /etc/apache2/conf-enabled/docker-php.conf, which is pulled in by an IncludeOptional directive further down in /etc/apache2/apache2.conf. HTH, Nalin
participants (3)
-
Daniel Walsh -
Jeroen Verhoeckx -
Nalin Dahyabhai