lots of log message and fixed bad_file_descriptor issue
This commit is contained in:
144
default.config
144
default.config
@@ -17,28 +17,28 @@ server {
|
||||
|
||||
root ./www/;
|
||||
|
||||
error_page 404 ./www/error_pages/error_404.html;
|
||||
# error_page 404 ./www/error_pages/error_404.html;
|
||||
# error_page 403 ./www/error_pages/error_404.html;
|
||||
|
||||
|
||||
location /kapouet {
|
||||
root /tmp/www;
|
||||
}
|
||||
# location /kapouet {
|
||||
# root /tmp/www;
|
||||
# }
|
||||
|
||||
location / {
|
||||
allow_methods GET;
|
||||
root ./www/;
|
||||
}
|
||||
|
||||
location /srcs/cgi-bin/ {
|
||||
root ./srcs/cgi-bin/;
|
||||
allow_methods POST;
|
||||
cgi_ext php;
|
||||
}
|
||||
|
||||
location /list {
|
||||
autoindex on;
|
||||
}
|
||||
# location /srcs/cgi-bin/ {
|
||||
# root ./srcs/cgi-bin/;
|
||||
# allow_methods POST;
|
||||
# cgi_ext php;
|
||||
# }
|
||||
#
|
||||
# location /list {
|
||||
# autoindex on;
|
||||
# }
|
||||
|
||||
|
||||
location /cgi-bin {
|
||||
@@ -46,64 +46,64 @@ server {
|
||||
cgi_ext out php sh;
|
||||
}
|
||||
|
||||
location /upload {
|
||||
allow_methods POST;
|
||||
upload_dir ./www/user_files/;
|
||||
# root doesn’t matter if used only with POST and no CGI
|
||||
}
|
||||
|
||||
location /the_dump {
|
||||
allow_methods GET DELETE;
|
||||
root ./www/user_files;
|
||||
autoindex on;
|
||||
}
|
||||
|
||||
location /redirect {
|
||||
redirect 307 https://fr.wikipedia.org/wiki/Ketchup;
|
||||
# redirect 307 https://www.youtube.com/watch?v=rG6b8gjMEkw;
|
||||
}
|
||||
|
||||
location /test {
|
||||
index index1.html subdex.html;
|
||||
root ./www/test/;
|
||||
}
|
||||
|
||||
location /stylesheet {
|
||||
root ./stylesheet/;
|
||||
}
|
||||
|
||||
location /test/index1.html {
|
||||
root ./www/test/index1.html;
|
||||
index index1.html subdex.html;
|
||||
}
|
||||
|
||||
location /hilarious_404/ {
|
||||
redirect 301 https://berniesanders.com/404/;
|
||||
}
|
||||
|
||||
location /test/something.html {
|
||||
# allow_methods DELETE;
|
||||
root ./www/test/something.html;
|
||||
}
|
||||
|
||||
location /test/test_deeper/ {
|
||||
# allow_methods
|
||||
root ./www/test/test_deeper/;
|
||||
index index1.html;
|
||||
}
|
||||
|
||||
location /test/test_deeper/super_deep {
|
||||
root ./www/test/test_deeper/super_deep/;
|
||||
index something.html;
|
||||
}
|
||||
# location /upload {
|
||||
# allow_methods POST;
|
||||
# upload_dir ./www/user_files/;
|
||||
# # root doesn’t matter if used only with POST and no CGI
|
||||
# }
|
||||
#
|
||||
# location /the_dump {
|
||||
# allow_methods GET DELETE;
|
||||
# root ./www/user_files;
|
||||
# autoindex on;
|
||||
# }
|
||||
#
|
||||
# location /redirect {
|
||||
# redirect 307 https://fr.wikipedia.org/wiki/Ketchup;
|
||||
## redirect 307 https://www.youtube.com/watch?v=rG6b8gjMEkw;
|
||||
# }
|
||||
|
||||
}
|
||||
|
||||
server {
|
||||
server_name server2;
|
||||
|
||||
listen 0.0.0.0:8080;
|
||||
|
||||
index index.html;
|
||||
root ./www2/;
|
||||
# location /test {
|
||||
# index index1.html subdex.html;
|
||||
# root ./www/test/;
|
||||
# }
|
||||
#
|
||||
# location /stylesheet {
|
||||
# root ./stylesheet/;
|
||||
# }
|
||||
#
|
||||
# location /test/index1.html {
|
||||
# root ./www/test/index1.html;
|
||||
# index index1.html subdex.html;
|
||||
# }
|
||||
#
|
||||
# location /hilarious_404/ {
|
||||
# redirect 301 https://berniesanders.com/404/;
|
||||
# }
|
||||
#
|
||||
# location /test/something.html {
|
||||
# # allow_methods DELETE;
|
||||
# root ./www/test/something.html;
|
||||
# }
|
||||
#
|
||||
# location /test/test_deeper/ {
|
||||
## allow_methods
|
||||
# root ./www/test/test_deeper/;
|
||||
# index index1.html;
|
||||
# }
|
||||
#
|
||||
# location /test/test_deeper/super_deep {
|
||||
# root ./www/test/test_deeper/super_deep/;
|
||||
# index something.html;
|
||||
# }
|
||||
#
|
||||
#}
|
||||
#
|
||||
#server {
|
||||
# server_name server2;
|
||||
#
|
||||
# listen 0.0.0.0:8080;
|
||||
#
|
||||
# index index.html;
|
||||
# root ./www2/;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user