WSGI, FLUP, FASTCGI, Web.PY relationship

Apache/lighttpd: It is equivalent to a request proxy. According to the configuration, different The request is forwarded to different servers for processing. For example, static file requests are processed by themselves. At this time, it is like a web server. For fastcgi/python requests, it is forwarded to a Server/Gateway such as flup for processing.

flup: a web server written in python, which is the so-called Server/ in cgi Gateway,它负责接受apache/lighttpd转发的请求,并调用你写的程序(application),并将application处理的结果返回到apache/lighttpd

fastcgi: a module of apache/lighttpd, although flup can be used as an independent web server, it is generally used for browser request processing Handed over to apache/lighttpd for processing, and then forwarded by apache/lighttpd to flup for processing, so that something is needed to connect apache/lighttpd with flup. This thing is fastcgi, which transmits the information requested by the client through environment variables and sockets给flup并接收flup返回的结果

web.py : It should be said that with the above things, you can start to write your web program, but the problem is that you have to deal with the browser’s input and output by yourself, as well as various issues such as cookies, sessions, templates, etc., web The role of .py is to help you do all these tasks. It is the so-called web framework. Another famous one is django, but it feels too complicated. Web.py is almost enough.
WSGI: In addition to flup Server/Gateway, there are many other people’s writing Server/Gateway, there will be a problem at this time. If you write a program on the flup, now you have to use xdly for various reasons. At this time, your program may have to make a lot of painful modifications to use xdly server. Now, WSGI is a specification. It regulates how the flup service should be written, what method and parameters should be used to call the program you wrote (application), etc. Of course, it also regulates how your program should be written. In this case, as long as flup If you follow WSGI with xdly, your program can be used on both, flup is a WSGI server

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 1666 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.