Instructions for DEBUG= use
This commit is contained in:
		@@ -119,7 +119,7 @@ GNU AGPLv3 code
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
Further options:
 | 
					Further options:
 | 
				
			||||||
- Change what morss does
 | 
					- 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
 | 
					- `callback=NAME`: for JSONP calls
 | 
				
			||||||
- `cors`: allow Cross-origin resource sharing (allows XHR calls from other servers)
 | 
					- `cors`: allow Cross-origin resource sharing (allows XHR calls from other servers)
 | 
				
			||||||
- `txt`: changes the http content-type to txt (for faster "`view-source:`")
 | 
					- `txt`: changes the http content-type to txt (for faster "`view-source:`")
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,6 +4,12 @@ ErrorDocument 403 "Access forbidden"
 | 
				
			|||||||
ErrorDocument 404 /cgi/main.py
 | 
					ErrorDocument 404 /cgi/main.py
 | 
				
			||||||
ErrorDocument 500 "A very nasty bug found his way onto this very server"
 | 
					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
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<Files ~ "\.(py|pyc|db|log)$">
 | 
					<Files ~ "\.(py|pyc|db|log)$">
 | 
				
			||||||
	deny from all
 | 
						deny from all
 | 
				
			||||||
</Files>
 | 
					</Files>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user