socketd.conf 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. listen 0.0.0.0:16969 512; //backlog=512
  2. listen 0.0.0.0:23456;
  3. threads 4;
  4. //bindings sections embedded in vhost sections are processed
  5. //before bindings in the global scope
  6. ipcbuffersize 16777216;
  7. vhost vh1 {
  8. bindings {
  9. {
  10. listen 0.0.0.0:16969;
  11. httppath /asdf;
  12. }
  13. }
  14. exec /home/xaxaxa/workspace/test/socketd_test $(uname -a);
  15. shell 1;
  16. preload 0;
  17. //at runtime, the # of processes will be rounded up to the nearest multiple
  18. //of the # of socketd threads, so the actual processes started will be 4
  19. processes 1;
  20. authcookie ghsdfjkgh;
  21. ipcbuffersize 16777216;
  22. }
  23. vhost vh2 {
  24. exec exec lighttpd -D -f /home/xaxaxa/workspace/test/lighttpd.conf;
  25. shell 1;
  26. preload 1;
  27. }
  28. vhost vh3 {
  29. bindings {
  30. {httppath /cppsp;}
  31. }
  32. // exec exec valgrind --leak-check=full socketd_cppsp -r /home/xaxaxa/workspace/test/ -c -I../include/ -c -L../lib/ -c -fPIC -c -g3;
  33. exec exec socketd_cppsp -r /home/xaxaxa/workspace/test/ -c -I../include/ -c -L../lib/ -c -fPIC -c -g3;
  34. // exec exec sleep 6000
  35. shell 1;
  36. preload 0;
  37. processes 2;
  38. }
  39. binding vh1 {
  40. httppath /test;
  41. }
  42. binding vh2 {
  43. httppath /sss;
  44. }