fixed chopefully?

This commit is contained in:
2025-11-29 23:49:53 -06:00
parent c7d1f8a782
commit 4cfb71e132

View File

@@ -2,29 +2,19 @@ root /var/www/resume.keshavanand.net;
# Main site # Main site
location / { location / {
# If the user types /, serve main.pdf try_files /resume/main.pdf =404;
try_files $uri $uri/ /resume/main.pdf;
} }
# Transcript # Transcript PDF
location /transcript { location /transcript {
try_files $uri $uri/ /transcripts/FallTranscript2025.pdf; try_files /transcripts/FallTranscript2025.pdf =404;
} }
# Redirect /transcript/ to /transcript # Brag sheet PDF
location /transcript/ {
return 301 /transcript;
}
# Brag sheet
location /brag-sheet-rsi { 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 # Catch-all 404 -> serve main resume