2021-04-25 02:45:02 +00:00
|
|
|
error_page 404 error/404.html;
|
|
|
|
location = error/404.html {
|
|
|
|
internal;
|
|
|
|
}
|
|
|
|
|
2021-04-25 02:34:23 +00:00
|
|
|
location = robots.txt {
|
2021-04-25 02:45:02 +00:00
|
|
|
allow all;
|
|
|
|
log_not_found off;
|
|
|
|
access_log off;
|
2021-04-22 20:36:35 +00:00
|
|
|
}
|
|
|
|
|
2021-04-25 02:34:23 +00:00
|
|
|
location = explore/ {
|
2021-04-25 02:45:02 +00:00
|
|
|
index index.html
|
2021-04-22 20:36:35 +00:00
|
|
|
}
|
|
|
|
|
2021-04-25 02:34:23 +00:00
|
|
|
location ~* explore/(.*)/ {
|
2021-04-22 20:36:35 +00:00
|
|
|
if ($request_uri ~ ^/(.*)\.html) {
|
2021-04-25 02:34:23 +00:00
|
|
|
return 302 explore/$1/;
|
2021-04-22 20:36:35 +00:00
|
|
|
}
|
|
|
|
try_files $uri $uri.html $uri/ =404;
|
|
|
|
}
|
|
|
|
}
|