In welchem ​​Protokoll spricht der Webserver mit CGI?

466
micgeronimo

Ich frage mich, welches Protokoll für die Kommunikation zwischen Web - Server verwendet wird, zB Apache, Nginxund CGI, zum Beispiel FCGI, UWSGI?

1
Ihre Frage ist nicht klar. Mit welchem ​​Protokoll können Apache und Nginx CGI unterstützen, das wäre natürlich [FastCGI] (https://en.wikipedia.org/wiki/FastCGI). [WSGU] (https://en.wikipedia.org/wiki/Web_Server_Gateway_Interface) ermöglicht die Unterstützung von Python in jeder Anwendung, die sein Protokoll implementiert. [UWSGI] (https://en.wikipedia.org/wiki/UWSGI) ist eine dieser Implementierungen. Ramhound vor 7 Jahren 1

1 Antwort auf die Frage

2
grawity

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.