Recent project requirements to learn the knowledge of Nginx, because of their own learning to shallow, a day more finally basically built out, afraid to forget later, so in this record
Nginx history, applications and all kinds of not recorded, self-Baidu ..... The advantage of Fcgi compared to CGI is that it can be executed all the time, not each time you have to fork one can refer to http://www.cnblogs.com/skynet/p/4173450.html
Already written quite clear.
SPAWN-FCGI is a very small program http://redmine.lighttpd.net/attachments/727/spawn-fcgi-win32.c can also download the compiled EXE file directly
Next in http://www.fastcgi.com download fastcgi, under win do development with the VS x86 native tool command prompt to find the appropriate directory decompression, go in, Nmake-f MAKEFILE. NT can. Examples will have some examples, but when you do,
Will go wrong to libfcgi will libfcgi.dll copy to the corresponding directory is OK, ready, now start accompany nginx.conf
server {listen 9000 ; server_name localhost; #charset koi8 -R; #access_log logs /host.access.log main; Location / {root html; Index license.html; } location =/echo-cpp {fastcgi_pass 127.0 . 0.1 : 8082
Location =/echo-cpp {
Fastcgi_pass 127.0.0.1:8082;
Fastcgi_index index.cgi;
Include fastcgi.conf;
}
This is the added configuration code.
Then under the corresponding directory spawn-fcgi-f./echo-cpp.exe-a 127.0.0.1-p 8082
After the binding succeeds, enter the Http://localhost:9000/echo-cpp in the browser
Results will appear after the
WINDOWS+NGINX+FCGI Configuration