Bug 13799: Change Mojolicious default mode to 'production'
authorJulian Maurice <julian.maurice@biblibre.com>
Wed, 7 Oct 2015 09:00:45 +0000 (11:00 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 4 Nov 2015 16:47:33 +0000 (13:47 -0300)
This avoid getting a debug page when URL is wrong.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
etc/koha-httpd.conf

index 4f1fc47..32cdf0a 100644 (file)
        Options +ExecCGI +FollowSymlinks
        AddHandler cgi-script .pl
 
+       SetEnv MOJO_MODE "production"
+
        RewriteEngine On
        RewriteBase /api/
        RewriteCond %{REQUEST_FILENAME} !-f
        Options +ExecCGI +FollowSymlinks
        AddHandler cgi-script .pl
 
+       SetEnv MOJO_MODE "production"
+
        RewriteEngine On
        RewriteBase /api/
        RewriteCond %{REQUEST_FILENAME} !-f
 #      Options +ExecCGI +FollowSymlinks
 #      AddHandler cgi-script .pl
 #
+#      SetEnv MOJO_MODE "production"
+#
 #      RewriteEngine on
 #
 #      RewriteRule ^api/(.*) $1 [L]