ldc-matomo/Dockerfile
2025-10-06 19:18:59 +02:00

10 lines
No EOL
317 B
Docker

FROM matomo:5.4.0-apache
RUN a2enmod rewrite
USER www-data
# Create .htaccess file with rewrite rules
RUN echo 'RewriteEngine On' > /var/www/html/.htaccess && \
echo 'RewriteRule ^unicorn$ matomo.js [L]' >> /var/www/html/.htaccess && \
echo 'RewriteRule ^rainbow$ matomo.php [L]' >> /var/www/html/.htaccess