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";
|
add_header X-Frame-Options "SAMEORIGIN";
|
||||||
|
|
||||||
location = /resume {
|
location = /resume {
|
||||||
root /usr/share/nginx/html;
|
try_files /usr/share/nginx/html/resume.txt =404;
|
||||||
index resume.txt
|
|
||||||
try_files /resume.txt;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
if ( $http_user_agent ~ 'curl' ) {
|
if ( $http_user_agent ~ 'curl' ) {
|
||||||
return 302 https://momoperes.ca/resume.txt;
|
return 302 https://momoperes.ca/resume;
|
||||||
}
|
}
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue