WINDOWS+NGINX+FCGI Configuration

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.