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