Skip to content

Commit 32eeded

Browse files
authored
Merge commit from fork
allow .htaccess overrides for admidio custom directory
2 parents fb71eb6 + c3df2c9 commit 32eeded

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

dockerscripts/startup.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,16 @@ if [ "$(cat ${ADMIDIO_INSTALLED_VERSION} 2>/dev/null)" != "$(cat ${ADMIDIO_IMAGE
187187
rm -f "${ADMIDIO_INSTALLED_VERSION}"
188188
fi
189189

190+
# allow .htaccess overrides for admidio custom directory
191+
echo "[INFO ] add custom Apache directory config"
192+
cat <<EOF > /etc/apache2/conf-available/admidio-custom.conf
193+
<Directory /opt/app-root/src/adm_my_files>
194+
AllowOverride All
195+
</Directory>
196+
EOF
197+
198+
a2enconf admidio-custom
199+
190200
# run apache with php enabled as user default
191201
echo "[INFO ] run apache config test (apachectl configtest)"
192202
apachectl configtest

0 commit comments

Comments
 (0)