This commit is contained in:
Aram 🍐 2019-11-20 20:37:34 -05:00
parent 92032046fc
commit 85aaeb55e1

View file

@ -7,7 +7,7 @@ server {
location / { location / {
if ( $http_user_agent ~ 'curl' ) { if ( $http_user_agent ~ 'curl' ) {
return 302 https://momoperes.ca/resume; return 302 https://momoperes.ca/resume.txt;
} }
root /usr/share/nginx/html; root /usr/share/nginx/html;
index index.html; index index.html;
@ -18,8 +18,7 @@ server {
location = /50x.html { location = /50x.html {
root /usr/share/nginx/html; root /usr/share/nginx/html;
} }
location = /resume.txt {
location = /resume { root /usr/share/nginx/html;
try_files /usr/share/nginx/html/resume.txt =404;
} }
} }