mirror of
https://github.com/asterisk/asterisk.git
synced 2026-05-04 20:33:53 +00:00
http: Add ability to disable /httpstatus URI
Add a new configuration option 'enable_status' which allows the /httpstatus URI handler to be administratively disabled. We also no longer unconditionally register the /static and /httpstatus URI handlers, but instead do it based upon configuration. Behavior change: If enable_static was turned off, the URI handler was still installed but returned a 403 when it was accessed. Because we now register/unregister the URI handlers as appropriate, if the /static URI is disabled we will return a 404 instead. Additionally: * Change 'enablestatic' to 'enable_static' but keep the former for backwards compatibility. * Improve some internal variable names ASTERISK-28710 #close Change-Id: I647510f796473793b1d3ce1beb32659813be69e1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
;
|
||||
; Asterisk Builtin mini-HTTP server
|
||||
; Asterisk Built-in mini-HTTP server
|
||||
;
|
||||
;
|
||||
; Note about Asterisk documentation:
|
||||
@@ -65,7 +65,13 @@ bindaddr=127.0.0.1
|
||||
; Whether Asterisk should serve static content from static-http
|
||||
; Default is no.
|
||||
;
|
||||
;enablestatic=yes
|
||||
;enable_static=yes
|
||||
;
|
||||
; Whether Asterisk should serve a status page showing the running
|
||||
; configuration of this built-in HTTP server.
|
||||
; Default is yes.
|
||||
;
|
||||
;enable_status=no
|
||||
;
|
||||
; Redirect one URI to another. This is how you would set a
|
||||
; default page.
|
||||
|
||||
Reference in New Issue
Block a user