You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Romain de Laage 7f5330ba7c Initial commit 11 months ago
cgi Initial commit 11 months ago
static Initial commit 11 months ago
uploads Initial commit 11 months ago
README.md Initial commit 11 months ago

README.md

Upload file with webbrowser using python CGI

NGINX :

server {
    listen   80;
    server_name  example.com;

    location / {
        root <your folder>/static;
        autoindex on;
        index index.html;
    }

    location ~ ^/cgi {
        root <your folder>/cgi;
        rewrite ^/cgi/(.*) /$1 break;

        include fastcgi_params;
        fastcgi_pass unix:/var/run/fcgiwrap.socket;
        fastcgi_param SCRIPT_FILENAME <your folder>/cgi$fastcgi_script_name;
    }
}