diff --git a/conf/diff_hosts.conf b/conf/diff_hosts.conf new file mode 100644 index 0000000..2bb7f59 --- /dev/null +++ b/conf/diff_hosts.conf @@ -0,0 +1,75 @@ +server { + listen 0.0.0.0:8080; + server_name mytest.local; + root ./; + autoindex on; + client_max_body_size 1m; + index assets/index.html; + use_chunked_encoding true; + chunk_size 100; + +# Custom error pages + error_page 404 /error_page/404.html; + error_page 403 /error_page/403.html; + error_page 500 /error_page/500.html; + +# Main site and directory listing test + location /assets/ { + root ./; + index old_index.html; + allowed_methods GET; + autoindex on; + } + + location /cgi-bin/ { + root ./; + allowed_methods GET POST; + cgi_path /usr/bin/python3 /usr/bin/php; + cgi_ext .py .php; + autoindex off; + } + + location /uploads/ { + root ./; + allowed_methods POST GET DELETE; + } + +} + +server { + listen 0.0.0.0:8081; + server_name mytest2.local; + root ./; + autoindex on; + client_max_body_size 1m; + index assets/index.html; + use_chunked_encoding true; + chunk_size 100; + +# Custom error pages + error_page 404 /error_page/404.html; + error_page 403 /error_page/403.html; + error_page 500 /error_page/500.html; + +# Main site and directory listing test + location /assets/ { + root ./; + index old_index.html; + allowed_methods GET; + autoindex on; + } + + location /cgi-bin/ { + root ./; + allowed_methods GET POST; + cgi_path /usr/bin/python3 /usr/bin/php; + cgi_ext .py .php; + autoindex off; + } + + location /uploads/ { + root ./; + allowed_methods POST GET DELETE; + } + +} \ No newline at end of file diff --git a/error_page/50x.html b/error_page/50x.html deleted file mode 100644 index 25b4b16..0000000 --- a/error_page/50x.html +++ /dev/null @@ -1,15 +0,0 @@ - - -
-