shifted org and added nginx conf
This commit is contained in:
31
nginx.conf
Normal file
31
nginx.conf
Normal file
@@ -0,0 +1,31 @@
|
||||
root /var/www/resume.keshavanand.net;
|
||||
|
||||
# Main site
|
||||
location / {
|
||||
# If the user types /, serve main.pdf
|
||||
try_files $uri $uri/ /resume/main.pdf;
|
||||
}
|
||||
|
||||
# Transcript
|
||||
location /transcript {
|
||||
try_files $uri $uri/ /transcripts/FallTranscript2025.pdf;
|
||||
}
|
||||
|
||||
# Redirect /transcript/ to /transcript
|
||||
location /transcript/ {
|
||||
return 301 /transcript;
|
||||
}
|
||||
|
||||
# Brag sheet
|
||||
location /brag-sheet-rsi {
|
||||
try_files $uri $uri/ /brag-sheet-rsi/main.pdf;
|
||||
}
|
||||
|
||||
# Redirect /brag-sheet-rsi/ to /brag-sheet-rsi
|
||||
location /brag-sheet-rsi/ {
|
||||
return 301 /brag-sheet-rsi;
|
||||
}
|
||||
|
||||
|
||||
# Catch-all 404 -> serve main resume
|
||||
error_page 404 = /resume/main.pdf;
|
||||
Reference in New Issue
Block a user