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