From 0fe1266671e1e6a6cbbc8bb1197ce717cd414830 Mon Sep 17 00:00:00 2001 From: ari melody Date: Sun, 18 Feb 2024 17:31:10 +0000 Subject: [PATCH] updated nginx config --- nginx.conf | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/nginx.conf b/nginx.conf index aa120c9..622bef2 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,18 +1,25 @@ server { - listen 80; - listen [::]:80; - server_name arimelody.me www.arimelody.me; + listen 80; + listen [::]:80; - root /web/arimelody/; + server_name arimelody.me www.arimelody.me; + access_log logs/arimelody.log; - client_max_body_size 0; + index index.html; + root /web/arimelody/; - add_header Cache-Control "max-age=14400"; + client_max_body_size 0; - server_tokens off; + add_header Cache-Control "max-age=14400"; - location / { - try_files $uri $uri/ $uri.html =404; - rewrite ^/music/(.*)$ https://mellodoot.com/music/$1 last; - } + server_tokens off; + + location / { + try_files $uri $uri/ $uri.html =404; + rewrite ^/music/(.*)$ https://mellodoot.com/music/$1 last; + } + + location = /give_me_money { + return 301 https://smokepowered.com; + } }