Debug in progress, somes fix but not the main problem

This commit is contained in:
lperrey
2022-08-18 06:03:09 +02:00
parent a008c12058
commit 3d17db996a
13 changed files with 136 additions and 117 deletions

View File

@@ -21,6 +21,9 @@ server {
# error_page 403 ./www/error_pages/error_404.html;
location /kapouet {
root /tmp/www;
}
location / {
allow_methods GET;
@@ -37,6 +40,7 @@ server {
autoindex on;
}
location /cgi-bin {
root ./srcs/cgi-bin/;
cgi_ext out php sh;
@@ -44,19 +48,7 @@ server {
location /upload {
allow_methods POST;
# autoindex on;
# root ./www/;
# index upload_form_single.html;
# upload_dir ./www/user_files/;
# root doesnt matter if used only with POST and no CGI
}
location /uploaded {
allow_methods GET;
autoindex on;
# upload_dir ./www/user_files/;
root ./www/user_files;
upload_dir ./www/user_files/;
# root doesnt matter if used only with POST and no CGI
}