I'm wondering what protocol is used for communication between
web server, e.g. Apache, Nginx and CGI, e.g. FCGI, UWSGI?
Asked
Active
Viewed 192 times
3
micgeronimo
- 277
1 Answers
3
uWSGI uses the uwsgi protocol (which is somehow related to the WSGI interface, but I'm not sure how), while FastCGI & fgcid use the FastCGI protocol.
Traditional "CGI" didn't have much of a protocol at all – the server would just spawn (fork+exec) the CGI script with HTTP request headers in environment variables (e.g. $HTTP_REFERER), and the script would print a raw HTTP reply to stdout.
grawity
- 501,077