From fa1b5aef09b1cec89a857dff12d227b73933f8af Mon Sep 17 00:00:00 2001 From: pictuga Date: Sun, 23 Aug 2020 15:31:11 +0200 Subject: [PATCH] Instructions for DEBUG= use --- README.md | 2 +- www/.htaccess | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4d5625e..86b41c0 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ GNU AGPLv3 code Further options: - Change what morss does -- Environment variable `DEBUG=`: to have some feedback from the script execution. Useful for debugging. On Apache, can be set via the `SetEnv` instruction +- Environment variable `DEBUG=`: to have some feedback from the script execution. Useful for debugging. On Apache, can be set via the `SetEnv` instruction (see sample `.htaccess` provided). - `callback=NAME`: for JSONP calls - `cors`: allow Cross-origin resource sharing (allows XHR calls from other servers) - `txt`: changes the http content-type to txt (for faster "`view-source:`") diff --git a/www/.htaccess b/www/.htaccess index 9b5238d..e698c86 100644 --- a/www/.htaccess +++ b/www/.htaccess @@ -4,6 +4,12 @@ ErrorDocument 403 "Access forbidden" ErrorDocument 404 /cgi/main.py ErrorDocument 500 "A very nasty bug found his way onto this very server" +# Uncomment below line to turn debug on for all requests +#SetEnv DEBUG 1 + +# Uncomment below line to turn debug on for requests with :debug in the url +#SetEnvIf Request_URI :debug DEBUG 1 + deny from all