From 4cfb71e132a89ea9bf73a025494bd87949a5fb23 Mon Sep 17 00:00:00 2001 From: KeshavAnandCode Date: Sat, 29 Nov 2025 23:49:53 -0600 Subject: [PATCH] fixed chopefully? --- nginx.conf | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/nginx.conf b/nginx.conf index be31b95..5d1e914 100644 --- a/nginx.conf +++ b/nginx.conf @@ -2,29 +2,19 @@ root /var/www/resume.keshavanand.net; # Main site location / { - # If the user types /, serve main.pdf - try_files $uri $uri/ /resume/main.pdf; + try_files /resume/main.pdf =404; } -# Transcript +# Transcript PDF location /transcript { - try_files $uri $uri/ /transcripts/FallTranscript2025.pdf; + try_files /transcripts/FallTranscript2025.pdf =404; } -# Redirect /transcript/ to /transcript -location /transcript/ { - return 301 /transcript; -} - -# Brag sheet +# Brag sheet PDF location /brag-sheet-rsi { - try_files $uri $uri/ /brag-sheet-rsi/main.pdf; + try_files /brag-sheet-rsi/main.pdf =404; } -# Redirect /brag-sheet-rsi/ to /brag-sheet-rsi -location /brag-sheet-rsi/ { - return 301 /brag-sheet-rsi; -} # Catch-all 404 -> serve main resume