diff options
author | Ashley Sanders <asanders@digium.com> | 2015-01-30 17:21:50 +0000 |
---|---|---|
committer | Ashley Sanders <asanders@digium.com> | 2015-01-30 17:21:50 +0000 |
commit | 6a76740b83c1ced26e9464a7abb5b30de4a60e6f (patch) | |
tree | ae6e42d3ff91c1669a262986d16523c9d5a3b6ab /configs/samples/http.conf.sample | |
parent | bd0bdf1e41c52afb6dbf262d60a8ed02d2110fcd (diff) |
HTTP: For httpd server, need option to define server name for security purposes
Added a new config property [servername] to the http.conf file; updated the http server to use the new property when sending responses, for showing http status through the CLI and when reporting status through the 'httpstatus' webpage. In this version, [servername] is uncommented by default.
ASTERISK-24316 #close
Reported By: Andrew Nagy
Review: https://reviewboard.asterisk.org/r/4374/
........
Merged revisions 431471 from http://svn.asterisk.org/svn/asterisk/branches/13
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@431484 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'configs/samples/http.conf.sample')
-rw-r--r-- | configs/samples/http.conf.sample | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/configs/samples/http.conf.sample b/configs/samples/http.conf.sample index 44095a11e..a4093bd88 100644 --- a/configs/samples/http.conf.sample +++ b/configs/samples/http.conf.sample @@ -13,6 +13,16 @@ ; [general] ; +; The name of the server, advertised in both the Server field in HTTP +; response message headers, as well as the <address /> element in certain HTTP +; response message bodies. If not furnished here, "Asterisk/{version}" will be +; used as a default value for the Server header field and the <address /> +; element. Setting this property to a blank value will result in the omission +; of the Server header field from HTTP response message headers and the +; <address /> element from HTTP response message bodies. +; +servername=Asterisk +; ; Whether HTTP/HTTPS interface is enabled or not. Default is no. ; This also affects manager/rawman/mxml access (see manager.conf) ; |