1234567891011121314151617181920212223242526272829303132 |
- listen 0.0.0.0:16969 512; //backlog=512
- //default thread count is NCPU
- //threads 2;
- //bindings sections embedded in vhost sections are processed
- //before bindings in the global scope
- ipcbuffersize 16777216;
- vhost vh1 {
- bindings {
- {
- listen 0.0.0.0:16969;
- httphost localhost:16969; //only match requests going to hostname "localhost"
- }
- }
- //the second exec is a shell command telling the shell to not fork, but execve() directly
- exec exec '/home/xaxaxa/cppsp_rel0.2.1'/socketd_cppsp -m /dir_list.cppsm -r '/home/xaxaxa/cppsp_rel0.2.1'/www -c -fPIC -c -I'/home/xaxaxa/cppsp_rel0.2.1'/include -c -Ofast -c -march=native -c '/home/xaxaxa/cppsp_rel0.2.1'/cpoll.o -c '/home/xaxaxa/cppsp_rel0.2.1'/cppsp.o -f;
- shell 1;
- preload 0; //socketd_cppsp is a native socketd application; no need to preload socketd_proxy
- //at runtime, the # of processes will be rounded up to the nearest multiple
- //of the # of socketd threads, so the actual processes started will be NCPU
- processes 1;
- }
- vhost vh2 {
- bindings {
- //adjust your /etc/hosts to test this
- {httphost host1:16969;}
- }
- exec exec lighttpd -D -f /path/to/lighttpd.conf;
- shell 1;
- preload 1; //preload socketd_proxy.so to run an unmodified http server under socketd
- }
|