User Tools

Site Tools


python_cgi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
python_cgi [2023/12/11 12:20] – created adminpython_cgi [2023/12/11 12:25] (current) admin
Line 5: Line 5:
 <code>apt install nginx fcgiwrap</code> <code>apt install nginx fcgiwrap</code>
  
 +Dann in Nginx Config im Serverteil folgendes zufügen:
  
 +<code>
 +
 + location /cgi-bin/ {
 + gzip off;
 + root  /usr/lib;
 + fastcgi_pass  unix:/var/run/fcgiwrap.socket;
 + include /etc/nginx/fastcgi_params;
 + fastcgi_param SCRIPT_FILENAME  /usr/lib$fastcgi_script_name;
 + }
 +</code>
 +
 +Python Dateien dann in /usr/lib/cgi-bin ablegen, cgi muss in Python Datei importiert werden mit:
 +
 +<code>
 +import cgi
 +</code>
python_cgi.1702297224.txt.gz · Last modified: 2023/12/11 12:20 by admin

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki