Код: Выделить всё
# cat -n /usr/local/etc/asterisk/http.conf
1 ;
2 ; Asterisk Builtin mini-HTTP server
3 ;
4 ;
5 ; Note about Asterisk documentation:
6 ; If Asterisk was installed from a tarball, then the HTML documentation should
7 ; be installed in the static-http/docs directory which is
8 ; (/var/lib/asterisk/static-http/docs) on linux by default. If the Asterisk
9 ; HTTP server is enabled in this file by setting the "enabled", "bindaddr",
10 ; and "bindport" options, then you should be able to view the documentation
11 ; remotely by browsing to:
12 ; http://<server_ip>:<bindport>/static/docs/index.html
13 ;
14 [general]
15 ;
16 ; Whether HTTP/HTTPS interface is enabled or not. Default is no.
17 ; This also affects manager/rawman/mxml access (see manager.conf)
18 ;
19 enabled=yes
20 ;
21 ; Address to bind to, both for HTTP and HTTPS. Default is 0.0.0.0
22 ;
23 bindaddr=46.98.139.93
24 ;
25 ; Port to bind to for HTTP sessions (default is 8088)
26 ;
27 bindport=8088
28 ;
29 ; Prefix allows you to specify a prefix for all requests
30 ; to the server. The default is blank. If uncommented
31 ; all requests must begin with /asterisk
32 ;
33 prefix=asterisk
34 ;
35 ; sessionlimit specifies the maximum number of httpsessions that will be
36 ; allowed to exist at any given time. (default: 100)
37 ;
38 sessionlimit=100
39 ;
40 ; Whether Asterisk should serve static content from http-static
41 ; Default is no.
42 ;
43 enablestatic=yes
44 ;
45 ; Redirect one URI to another. This is how you would set a
46 ; default page.
47 ; Syntax: redirect=<from here> <to there>
48 ; For example, if you are using the Asterisk-gui,
49 ; it is convenient to enable the following redirect:
50 ;
51 redirect = / /static/config/index.html
52 ;
53 ; HTTPS support. In addition to enabled=yes, you need to
54 ; explicitly enable tls, define the port to use,
55 ; and have a certificate somewhere.
56 ;tlsenable=yes ; enable tls - default no.
57 ;tlsbindport=4433 ; port to use - default is 8089
58 ;tlsbindaddr=0.0.0.0 ; address to bind to - default is bindaddr.
59 ;
60 ;tlscertfile=</path/to/certificate.pem> ; path to the certificate file (*.pem) only.
61 ;tlsprivatekey=</path/to/private.pem> ; path to private key file (*.pem) only.
62 ; If no path is given for tlscertfile or tlsprivatekey, default is to look in current
63 ; directory. If no tlsprivatekey is given, default is to search tlscertfile for private key.
64 ;
65 ; To produce a certificate you can e.g. use openssl. This places both the cert and
66 ; private in same .pem file.
67 ; openssl req -new -x509 -days 365 -nodes -out /tmp/foo.pem -keyout /tmp/foo.pem
68 ;
69 ; The post_mappings section maps URLs to real paths on the filesystem. If a
70 ; POST is done from within an authenticated manager session to one of the
71 ; configured POST mappings, then any files in the POST will be placed in the
72 ; configured directory.
73 ;
74 [post_mappings]
75 ;
76 ; In this example, if the prefix option is set to "asterisk", then using the
77 ; POST URL: /asterisk/uploads will put files in /var/lib/asterisk/uploads/.
78 uploads = /var/lib/asterisk/uploads/
79 ;
"The GUI does not have necessary privileges.
Please check the manager permissions for the user !"