fix: Fix .htaccess rights
This commit is contained in:
parent
0e80683048
commit
706c067919
1 changed files with 4 additions and 5 deletions
|
|
@ -2,10 +2,9 @@ FROM matomo:5.4.0-apache
|
|||
|
||||
RUN a2enmod rewrite
|
||||
|
||||
RUN chown -R www-data:www-data /var/log/apache2 && \
|
||||
setcap 'cap_net_bind_service=+ep' /usr/sbin/apache2
|
||||
|
||||
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
|
||||
USER root
|
||||
|
||||
RUN printf "RewriteEngine On\nRewriteRule ^unicorn$ matomo.js [L]\nRewriteRule ^rainbow$ matomo.php [L]\n" > /var/www/html/.htaccess
|
||||
Loading…
Add table
Reference in a new issue