From 0368aeffc9821ed3e4705f434ba6505435256a7f Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Wed, 7 Oct 2015 11:00:45 +0200 Subject: [PATCH] Bug 13799: Change Mojolicious default mode to 'production' This avoid getting a debug page when URL is wrong. --- etc/koha-httpd.conf | 6 ++++++ 1 file changed, 6 insertions(+) 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.9.1