From 6219dbb730dceedb5f20310eea49d83eee10f0fd Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Wed, 7 Oct 2015 11:00:45 +0200 Subject: [PATCH] [PASSED QA] Bug 13799: Change Mojolicious default mode to 'production' This avoid getting a debug page when URL is wrong. Signed-off-by: Martin Renvoize Signed-off-by: Kyle M Hall --- etc/koha-httpd.conf | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/etc/koha-httpd.conf b/etc/koha-httpd.conf index 4f1fc47..32cdf0a 100644 --- a/etc/koha-httpd.conf +++ b/etc/koha-httpd.conf @@ -119,6 +119,8 @@ Options +ExecCGI +FollowSymlinks AddHandler cgi-script .pl + SetEnv MOJO_MODE "production" + RewriteEngine On RewriteBase /api/ RewriteCond %{REQUEST_FILENAME} !-f @@ -236,6 +238,8 @@ Options +ExecCGI +FollowSymlinks AddHandler cgi-script .pl + SetEnv MOJO_MODE "production" + RewriteEngine On RewriteBase /api/ RewriteCond %{REQUEST_FILENAME} !-f @@ -261,6 +265,8 @@ # Options +ExecCGI +FollowSymlinks # AddHandler cgi-script .pl # +# SetEnv MOJO_MODE "production" +# # RewriteEngine on # # RewriteRule ^api/(.*) $1 [L] -- 1.7.2.5