tntnet.xml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <tntnet>
  3. <mappings>
  4. <mapping>
  5. <target>static@tntnet</target>
  6. <url>(.*)/$</url>
  7. <pathinfo>/$1/index.html</pathinfo>
  8. </mapping>
  9. <mapping>
  10. <target>static@tntnet</target>
  11. <url>^/(.*)$</url>
  12. <pathinfo>/$1</pathinfo>
  13. </mapping>
  14. </mappings>
  15. <listeners>
  16. <listener>
  17. <ip>0.0.0.0</ip>
  18. <port>80</port>
  19. </listener>
  20. </listeners>
  21. <daemon>1</daemon>
  22. <user>tntnet</user>
  23. <group>tntnet</group>
  24. <maxRequestSize>1048576</maxRequestSize>
  25. <pidFile>/var/run/tntnet.pid</pidFile>
  26. <minThreads>2</minThreads>
  27. <maxThreads>4</maxThreads>
  28. <documentRoot>/www</documentRoot>
  29. <compPath>
  30. <entry>/usr/lib/tntnet</entry>
  31. </compPath>
  32. <logging>
  33. <rootlogger>INFO</rootlogger>
  34. <loggers>
  35. <logger>
  36. <category>tntnet</category>
  37. <level>INFO</level>
  38. </logger>
  39. </loggers>
  40. <!-- <file>tntnet.log</file> --> <!--uncomment if you want to log to a file -->
  41. <!-- <maxfilesize>1MB</maxfilesize> -->
  42. <!-- <maxbackupindex>2</maxbackupindex> -->
  43. <!-- <host>localhost:1234</host> --> <!-- # send log-messages with udp -->
  44. </logging>
  45. <include>/etc/tntnet/mime.conf</include>
  46. </tntnet>