http.conf.sample 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. You MUST specify
  22. ; a bindaddr in order for the HTTP server to run. There is no
  23. ; default value.
  24. ;
  25. bindaddr=127.0.0.1
  26. ;
  27. ; Port to bind to for HTTP sessions (default is 8088)
  28. ;
  29. ;bindport=8088
  30. ;
  31. ; Prefix allows you to specify a prefix for all requests
  32. ; to the server. The default is blank. If uncommented
  33. ; all requests must begin with /asterisk
  34. ;
  35. ;prefix=asterisk
  36. ;
  37. ; sessionlimit specifies the maximum number of httpsessions that will be
  38. ; allowed to exist at any given time. (default: 100)
  39. ;
  40. ;sessionlimit=100
  41. ;
  42. ; session_inactivity specifies the number of milliseconds to wait for
  43. ; more data over the HTTP connection before closing it.
  44. ;
  45. ; Default: 30000
  46. ;session_inactivity=30000
  47. ;
  48. ; session_keep_alive specifies the number of milliseconds to wait for
  49. ; the next HTTP request over a persistent connection.
  50. ;
  51. ; Default: 0 (Disables persistent HTTP connections.)
  52. ;session_keep_alive=15000
  53. ;
  54. ; Whether Asterisk should serve static content from static-http
  55. ; Default is no.
  56. ;
  57. ;enablestatic=yes
  58. ;
  59. ; Redirect one URI to another. This is how you would set a
  60. ; default page.
  61. ; Syntax: redirect=<from here> <to there>
  62. ; For example, if you are using the Asterisk-gui,
  63. ; it is convenient to enable the following redirect:
  64. ;
  65. ;redirect = / /static/config/index.html
  66. ;
  67. ; HTTPS support. In addition to enabled=yes, you need to
  68. ; explicitly enable tls, define the port to use,
  69. ; and have a certificate somewhere.
  70. ;tlsenable=yes ; enable tls - default no.
  71. ;tlsbindaddr=0.0.0.0:8089 ; address and port to bind to - default is bindaddr and port 8089.
  72. ;
  73. ;tlscertfile=</path/to/certificate.pem> ; path to the certificate file (*.pem) only.
  74. ;tlsprivatekey=</path/to/private.pem> ; path to private key file (*.pem) only.
  75. ; If no path is given for tlscertfile or tlsprivatekey, default is to look in current
  76. ; directory. If no tlsprivatekey is given, default is to search tlscertfile for private key.
  77. ;
  78. ; To produce a certificate you can e.g. use openssl. This places both the cert and
  79. ; private in same .pem file.
  80. ; openssl req -new -x509 -days 365 -nodes -out /tmp/foo.pem -keyout /tmp/foo.pem
  81. ;
  82. ; The post_mappings section maps URLs to real paths on the filesystem. If a
  83. ; POST is done from within an authenticated manager session to one of the
  84. ; configured POST mappings, then any files in the POST will be placed in the
  85. ; configured directory.
  86. ;
  87. ;[post_mappings]
  88. ;
  89. ; NOTE: You need a valid HTTP AMI mansession_id cookie with the manager
  90. ; config permission to POST files.
  91. ;
  92. ; In this example, if the prefix option is set to "asterisk", then using the
  93. ; POST URL: /asterisk/uploads will put files in /var/lib/asterisk/uploads/.
  94. ;uploads = /var/lib/asterisk/uploads/
  95. ;