use pre-defined apache config with AllowOverride enabled to include htaccess files
parent
73a0b306ba
commit
74c5d366d7
|
@ -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>
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue