diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e07c80..834c81c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ - Creates and secures `metadata/log` for Apache logs - Dynamically creates and sets permissions on `uploads`, `users`, and `metadata` directories at startup - Apache VirtualHost updated to redirect `ErrorLog` and `CustomLog` into `/var/www/metadata/log` +- docker: remove symlink add alias for uploads folder --- diff --git a/Dockerfile b/Dockerfile index 35f79a8..94c9ff3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -59,14 +59,17 @@ RUN chown -R root:www-data /var/www && \ chown -R www-data:www-data /var/www/public/uploads /var/www/users /var/www/metadata && \ chmod -R 775 /var/www/public/uploads /var/www/users /var/www/metadata # writable upload areas -# Preserve your uploads symlink -RUN cd /var/www/public && ln -s ../uploads uploads - # Apache site configuration RUN cat <<'EOF' > /etc/apache2/sites-available/000-default.conf ServerAdmin webmaster@localhost DocumentRoot /var/www/public + Alias /uploads/ /var/www/uploads/ + + Options -Indexes + AllowOverride None + Require all granted + AllowOverride All Require all granted