use pre-defined apache config with AllowOverride enabled to include htaccess files

lektura
max.mehl 2017-06-19 22:35:41 +02:00
parent 73a0b306ba
commit 74c5d366d7
2 changed files with 16 additions and 1 deletions

15
000-default.conf 100644
View File

@ -0,0 +1,15 @@
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /usr/share/blog/public
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /usr/share/blog/public/>
Options Indexes FollowSymLinks Includes MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

View File

@ -17,6 +17,6 @@ RUN dpkg -i /tmp/hugo.deb \
COPY site/ /usr/share/blog
RUN sed -i.bak "s;/var/www/html;/usr/share/blog/public;" /etc/apache2/sites-enabled/000-default.conf
COPY 000-default.conf /etc/apache2/sites-enabled/
CMD /usr/share/blog/build/build.sh /usr/share/blog/data/signatures/signatures.json && apache2-foreground