Improved nginx config and enable for sub-pages.
This commit is contained in:
parent
a8681fd5cf
commit
c4dcb7cd40
1 changed files with 11 additions and 5 deletions
|
|
@ -9,14 +9,20 @@ server {
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
index index.html;
|
index index.html;
|
||||||
try_files $uri $uri/ $uri.html =404;
|
|
||||||
ssi on;
|
ssi on;
|
||||||
|
try_files $uri $uri.html $uri/ /pages$uri /pages$uri.html =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /includes/ {
|
location /pages/ {
|
||||||
try_files $uri $uri/ $uri.html =404;
|
internal;
|
||||||
ssi on;
|
ssi on;
|
||||||
add_header X-Robots-Tag "noindex, nofollow";
|
deny all;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ^~ /includes/ {
|
||||||
|
internal;
|
||||||
|
ssi on;
|
||||||
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
error_page 404 /404.html;
|
error_page 404 /404.html;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue