fixed an autoindex issue, working on uploading files

This commit is contained in:
Me
2022-08-12 23:45:13 +02:00
parent 4d395088d0
commit a69273b88e
6 changed files with 95 additions and 8 deletions

View File

@@ -15,6 +15,22 @@ server {
error_page 404 ./www/error_pages/error_404.html;
# something to do with /upload
location /upload {
root ./www/test/;
index submit_form.html;
upload_dir ./www/uploaded/;
cgi_ext php;
}
location /uploaded {
autoindex on;
root ./www/uploaded/;
}
location /list {
autoindex on;
}