Allow Apache access to web root
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user