Browse Source

Set the correct server root for lighttpd

master
Luke Murphy 5 years ago
parent
commit
3e6194e65f
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 4
      bibliotecha.sh

4
bibliotecha.sh

@ -266,6 +266,10 @@ function configure_webserver {
echo 'include "bibliotecha/bibliotecha.conf"' >> /etc/lighttpd/lighttpd.conf echo 'include "bibliotecha/bibliotecha.conf"' >> /etc/lighttpd/lighttpd.conf
fi fi
sed -i \
's/server.document-root.*/server.document-root = "\/var\/www"/g' \
/etc/lighttpd/lighttpd.conf
mkdir -p "$LIGHTTPD_CONFIG_PATH" mkdir -p "$LIGHTTPD_CONFIG_PATH"
{ echo 'server.error-handler = "/bibliotecha/index.html"' { echo 'server.error-handler = "/bibliotecha/index.html"'

Loading…
Cancel
Save