From 0154ed0516fd97591d314eac6fa8241e5979b3de Mon Sep 17 00:00:00 2001 From: Olli-Antti Kivilahti Date: Wed, 28 Dec 2016 12:08:29 +0200 Subject: [PATCH] Bug 18216 - Apache2 grants access to Koha modules and templates Fixes this install step for dev installs: https://wiki.koha-community.org/wiki/Koha_on_ubuntu_-_packages#403_errors_for_Gitified_or_git_clone_installs --SNIP-- 403 errors for Gitified or git clone installs In Ubuntu 14.04 you may discover that your gitified install returns 403 errors - this is because of the changes to Apache directory security. A possible fix includes adding the following stanza to apache2.conf (could be added in the virtualhost, or in one of the koha-shared*.conf files as well): Options Indexes FollowSymLinks AllowOverride None Require all granted --SNAP-- --- etc/koha-httpd.conf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/etc/koha-httpd.conf b/etc/koha-httpd.conf index 2747791..76af3c3 100644 --- a/etc/koha-httpd.conf +++ b/etc/koha-httpd.conf @@ -18,6 +18,13 @@ SetEnv KOHA_CONF "__KOHA_CONF_DIR__/koha-conf.xml" SetEnv PERL5LIB "__PERL_MODULE_DIR__" + #Apache2.4 by default denies any access anywhere. Grant access to the Koha-directory + + Options Indexes FollowSymLinks + AllowOverride None + Require all granted + + # This syntax allows you to override a system preference # for a given virtual host. Use with caution! # You should add all the system preferences you override @@ -145,6 +152,13 @@ SetEnv PERL5LIB "__PERL_MODULE_DIR__" Options +FollowSymLinks + #Apache2.4 by default denies any access anywhere. Grant access to the Koha-directory + + Options Indexes FollowSymLinks + AllowOverride None + Require all granted + + # If you are overriding any system preferences, # list them in this variable so the preference editor # knows that they have been overridden. -- 2.7.4