Lets try this
This commit is contained in:
parent
9d0cd8c4bd
commit
a83342e6fe
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue