From 4c42f81b7077a8a40bbe01f94b75a4d9a630c022 Mon Sep 17 00:00:00 2001 From: Ihor_Zhekov Date: Tue, 24 Feb 2026 14:22:56 +0000 Subject: [PATCH] Add vhost.conf --- vhost.conf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 vhost.conf diff --git a/vhost.conf b/vhost.conf new file mode 100644 index 0000000..32b56cb --- /dev/null +++ b/vhost.conf @@ -0,0 +1,16 @@ +server { + listen 80; + server_name localhost; + + root /usr/share/nginx/html; + index index.html; + + location / { + try_files $uri $uri/ $uri.html =404; + } + + location ~* \.(jpg|jpeg|png|gif|ico|css|js|mp4|webm)$ { + expires 30d; + add_header Cache-Control "public, no-transform"; + } +} \ No newline at end of file