@@ -, +, @@ package installs config via /etc/koha/apache-shared-intranet.conf. Restart Apache. Try one of the URLs in step 3. Verify that your staff client still operates as usual. Test a few URLs inside some modules. Try some URLs like below. Expect 404 errors only, not 500s. If you do not see a 404, go back! /misc/stage_file.pl /t/db_dependent/default_search_class.pl /installer/data/mysql/updatedatabase.pl /Makefile.PL --- debian/templates/apache-shared-intranet.conf | 3 +++ 1 file changed, 3 insertions(+) --- a/debian/templates/apache-shared-intranet.conf +++ a/debian/templates/apache-shared-intranet.conf @@ -11,6 +11,9 @@ ScriptAlias /cgi-bin/koha/ "/usr/share/koha/intranet/cgi-bin/" ScriptAlias /index.html "/usr/share/koha/intranet/cgi-bin/mainpage.pl" ScriptAlias /search "/usr/share/koha/intranet/cgi-bin/search.pl" +# Protect dev package install +RewriteEngine on +RewriteRule ^/cgi-bin/koha/(C4|debian|etc|installer/data|install_misc|Koha|misc|selenium|t|test|tmp|xt)/|\.PL$ /notfound [PT] RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*) RewriteRule (.+) $1?%1%2 [N,R,NE] --