Asterisk config http.conf

Asterisk's mini-http isn't good for much, but you can use it to serve a few small files, like polycom configs.

NOTE: THE HTTP SERVER IS CASE-SENSITIVE. THIS MEANS THAT /var/lib/asterisk/static-http/0004F215A15E.cfg WILL NOT be sent to a request for http://myserver.com:8080/static/0004f215a15e.cfg

Examples

;
; Asterisk Builtin mini-HTTP server
;
;
[general]
; Whether HTTP interface is enabled or not. Default is no.
;
enabled=yes
;
; Whether Asterisk should serve static content from http-static
; Default is no.
;
enablestatic=yes
;
; Address to bind to. Default is 0.0.0.0
;
bindaddr=0.0.0.0
;
; Port to bind to (default is 8088)
;
bindport=8080
;
; Prefix allows you to specify a prefix for all requests
; to the server. The default is "asterisk" so that all
; requests must begin with /asterisk
;
prefix=

; The post_mappings section maps URLs to real paths on the filesystem. If a
; POST is done from within an authenticated manager session to one of the
; configured POST mappings, then any files in the POST will be placed in the
; configured directory.
;
[post_mappings]
;
; In this example, if the prefix option is set to "asterisk", then using the
; POST URL: /asterisk/uploads will put files in /var/lib/asterisk/uploads/.
; uploads = /var/lib/asterisk/uploads/

Links

Back to Asterisk config files
Asterisk's mini-http isn't good for much, but you can use it to serve a few small files, like polycom configs.

NOTE: THE HTTP SERVER IS CASE-SENSITIVE. THIS MEANS THAT /var/lib/asterisk/static-http/0004F215A15E.cfg WILL NOT be sent to a request for http://myserver.com:8080/static/0004f215a15e.cfg

Examples

;
; Asterisk Builtin mini-HTTP server
;
;
[general]
; Whether HTTP interface is enabled or not. Default is no.
;
enabled=yes
;
; Whether Asterisk should serve static content from http-static
; Default is no.
;
enablestatic=yes
;
; Address to bind to. Default is 0.0.0.0
;
bindaddr=0.0.0.0
;
; Port to bind to (default is 8088)
;
bindport=8080
;
; Prefix allows you to specify a prefix for all requests
; to the server. The default is "asterisk" so that all
; requests must begin with /asterisk
;
prefix=

; The post_mappings section maps URLs to real paths on the filesystem. If a
; POST is done from within an authenticated manager session to one of the
; configured POST mappings, then any files in the POST will be placed in the
; configured directory.
;
[post_mappings]
;
; In this example, if the prefix option is set to "asterisk", then using the
; POST URL: /asterisk/uploads will put files in /var/lib/asterisk/uploads/.
; uploads = /var/lib/asterisk/uploads/

Links

Back to Asterisk config files
Created by: Sweeper, Last modification: Wed 07 of Nov, 2007 (07:31 UTC) by jadler
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+