tntnet.conf 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # tntnet.conf
  2. PropertyFile /etc/tntnet/tntnet.properties
  3. Listen 0.0.0.0 80
  4. #SslListen 0.0.0.0 443 /etc/tntnet/tntnet.pem
  5. Daemon 1
  6. User tntnet
  7. Group tntnet
  8. CompPath /usr/lib/tntnet
  9. # set some limit to prevent DoS-attacks
  10. MaxRequestSize 1048576 # 1 MB
  11. #Dir /
  12. #Chroot /var/safedir
  13. PidFile /var/run/tntnet.pid
  14. MinThreads 2
  15. MaxThreads 4
  16. #ThreadStartDelay 0 # in ms
  17. #QueueSize 100
  18. #CompPath path
  19. #Load webapp # preload webapplication
  20. #BufferSize 16384
  21. #SocketReadTimeout 200
  22. #SocketWriteTimeout 10000
  23. #KeepAliveTimeout 15000
  24. #KeepAliveMax 100
  25. #SessionTimeout 300
  26. #CompLifetime 10
  27. #MaxRequestTime 600
  28. #ReportStateTime 1200
  29. #include /etc/tntnet.d/*.conf
  30. include /etc/tntnet/mime.conf
  31. # make demos callable
  32. #MapUrl ^/demos/controls$ redirect@tntnet /demos/controls/
  33. #MapUrl ^/demos/controls/(.+)\..* $1@controls
  34. #MapUrl ^/demos/controls/$ index@controls index
  35. #MapUrl ^/demos/controls/(.+) index@controls $1
  36. #MapUrl ^/demos/(.+)\..* $1@$1 $1
  37. #MapUrl ^/demos/(.+) $1@$1
  38. #MapUrl ^/demos/tntnet.jpg tntnet@hello
  39. # configure tntnet as a simple webserver
  40. DocumentRoot /www
  41. MapUrl (.*)/$ static@tntnet /$1/index.html
  42. MapUrl ^/(.*)$ static@tntnet /$1