Added simple http server

This commit is contained in:
Goyban
2026-09-16 10:34:30 +02:00
parent f1f184c36e
commit 8ff5428bb1
5 changed files with 177 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
events {}
http {
# Without these every file except .html/.gif/.jpg is served as text/plain,
# from nginx's tiny built-in table. Old browsers then try to *display* a
# .zip or .exe instead of offering to save it. Parsed once at startup --
# no per-request cost, and mime.types already ships in the image.
include /etc/nginx/mime.types;
default_type application/octet-stream;
server {
listen 80;
server_name localhost;
location / {
autoindex on;
root /usr/share/nginx/html;
}
}
}