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 / {
|
||||
index index.html;
|
||||
try_files $uri $uri/ $uri.html =404;
|
||||
ssi on;
|
||||
try_files $uri $uri.html $uri/ /pages$uri /pages$uri.html =404;
|
||||
}
|
||||
|
||||
location /includes/ {
|
||||
try_files $uri $uri/ $uri.html =404;
|
||||
ssi on;
|
||||
add_header X-Robots-Tag "noindex, nofollow";
|
||||
location /pages/ {
|
||||
internal;
|
||||
ssi on;
|
||||
deny all;
|
||||
}
|
||||
|
||||
location ^~ /includes/ {
|
||||
internal;
|
||||
ssi on;
|
||||
deny all;
|
||||
}
|
||||
|
||||
error_page 404 /404.html;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue