Bug 13799: Change Mojolicious default mode to 'production'
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>
This commit is contained in:
parent
5533d65801
commit
93a88eaaf6
1 changed files with 6 additions and 0 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue