appweb.conf 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #
  2. # appweb.conf -- Appweb Configuration for a typical server
  3. #
  4. # See the max-server sample for more appweb.conf configuration directives.
  5. #
  6. # This configuration file controls the operation of the Appweb server. The
  7. # order of configuration directives matters as this file is parsed only once.
  8. #
  9. ErrorLog "error.log" size=10MB level=2 backup=5 anew
  10. TraceLog "trace.log" level=0 size=10MB backup=5 anew
  11. Trace request=1 error=2 result=2 context=3 form=4 body=5 debug=5 content=10K
  12. #
  13. # Enable emitting debug error messages back to the client. Defaults to "off".
  14. # WARNING: this may disclose unwanted information. Do not enable in production releases.
  15. #
  16. ShowErrors off
  17. Listen 8080
  18. Documents web
  19. GroupAccount APPWEB
  20. UserAccount APPWEB
  21. # CanonicalName http://yourname.com
  22. <if CGI_MODULE>
  23. AddHandler cgiHandler exe cgi cgi-nph out bat cmd pl py
  24. ScriptAlias /cgi-bin/ "cgi-bin"
  25. Action application/x-perl /usr/bin/perl
  26. Action application/x-python /usr/bin/python
  27. Action application/x-lua /usr/bin/lua
  28. Action application/x-ruby /usr/bin/ruby
  29. CgiPrefix CGI_
  30. CgiEscape on
  31. LimitProcesses 10
  32. </if>
  33. <Route ^/action/>
  34. SetHandler actionHandler
  35. </Route>
  36. <if ESP_MODULE>
  37. AddHandler espHandler esp
  38. </if>
  39. AddHandler fileHandler
  40. Cache client=1day extensions="html,gif,jpeg,jpg,png,pdf,ico,js"
  41. LimitMemory 3MB
  42. MemoryPolicy restart