Lets try this

This commit is contained in:
Aram 🍐 2019-11-20 20:30:15 -05:00
parent 9d0cd8c4bd
commit a83342e6fe

View file

@ -6,14 +6,12 @@ server {
add_header X-Frame-Options "SAMEORIGIN";
location = /resume {
root /usr/share/nginx/html;
index resume.txt
try_files /resume.txt;
try_files /usr/share/nginx/html/resume.txt =404;
}
location / {
if ( $http_user_agent ~ 'curl' ) {
return 302 https://momoperes.ca/resume.txt;
return 302 https://momoperes.ca/resume;
}
root /usr/share/nginx/html;
index index.html;