ваше сообщение коммита
This commit is contained in:
@@ -221,6 +221,7 @@ http {
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
add_header X-Robots-Tag "noindex, nofollow, noarchive, nosnippet, noimageindex" always;
|
||||
proxy_redirect off;
|
||||
proxy_http_version 1.1;
|
||||
proxy_connect_timeout 120s;
|
||||
@@ -253,6 +254,9 @@ http {
|
||||
|
||||
# Pre-rendered blog pages (SEO optimization)
|
||||
location /blog {
|
||||
if ($arg_page != "") {
|
||||
return 301 /blog;
|
||||
}
|
||||
root /usr/share/nginx/html;
|
||||
try_files $uri $uri.html /blog/index.html /index.html;
|
||||
|
||||
@@ -262,6 +266,13 @@ http {
|
||||
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||
}
|
||||
|
||||
location = /content/published {
|
||||
if ($arg_page != "") {
|
||||
return 301 /content/published;
|
||||
}
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
# Статические файлы
|
||||
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
|
||||
expires 1y;
|
||||
|
||||
Reference in New Issue
Block a user