Allow Apache access to web root

This commit is contained in:
luthfihadinugroho79
2026-06-11 15:14:08 +07:00
parent cc0f400874
commit f8f211a500
+3
View File
@@ -13,7 +13,10 @@ services:
command: >
bash -lc "docker-php-ext-install mysqli pdo pdo_mysql
&& a2enmod rewrite
&& printf '%s\\n' '<Directory /var/www/html>' ' Options Indexes FollowSymLinks' ' AllowOverride All' ' Require all granted' '</Directory>' 'DirectoryIndex index.php index.html' > /etc/apache2/conf-available/webgis.conf
&& a2enconf webgis
&& mkdir -p /var/www/html/02/uploads /var/www/html/05/assets/uploads /var/www/html/05/uploads/bukti
&& chmod -R a+rX /var/www/html
&& chown -R www-data:www-data /var/www/html/02/uploads /var/www/html/05/assets/uploads /var/www/html/05/uploads
&& apache2-foreground"
depends_on: