File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed
profile/templates/testswarm/server Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ server {
14
14
15
15
access_log /var/log/nginx/access.log;
16
16
error_log /var/log/nginx/error.log crit;
17
+ log_not_found off;
17
18
server_tokens off;
18
19
19
20
location ~* ^(/cache|/config|/inc|/scripts) {
@@ -23,7 +24,6 @@ server {
23
24
# Prevent hidden "dotfiles" from being served
24
25
location ~ /\. {
25
26
access_log off;
26
- log_not_found off;
27
27
deny all;
28
28
}
29
29
@@ -59,7 +59,6 @@ server {
59
59
# Directives to send expires headers and turn off 404 error logging.
60
60
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
61
61
expires 24h;
62
- log_not_found off;
63
62
}
64
63
65
64
location ~ \.php$ {
Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ server {
13
13
14
14
access_log off;
15
15
error_log /var/log/nginx/error.log;
16
+ log_not_found off;
16
17
server_tokens off;
17
18
18
19
# Prevent hidden "dotfiles" from being served
19
20
location ~ /\. {
20
21
access_log off;
21
- log_not_found off;
22
22
deny all;
23
23
}
24
24
@@ -32,19 +32,16 @@ server {
32
32
33
33
location = /favicon.ico {
34
34
access_log off;
35
- log_not_found off;
36
35
try_files /wp-content/themes/<%= @active_theme %> /i/favicon.ico /wp-content/themes/jquery/i/favicon.ico;
37
36
}
38
37
39
38
location = /robots.txt {
40
39
access_log off;
41
- log_not_found off;
42
40
try_files $uri /wp-content/themes/<%= @active_theme %> /robots.txt;
43
41
}
44
42
45
43
location ~* \.(css|gif|ico|jpeg|jpg|js|png)$ {
46
44
expires 24h;
47
- log_not_found off;
48
45
}
49
46
50
47
location / {
Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ location ~ ^<%= @path %>resources/(?<name>.*) {
7
7
location ^~ <%= @path %> {
8
8
root <%= @webroot %> /;
9
9
try_files $uri $uri/ <%= @path %> index.php$is_args$args;
10
+ log_not_found off;
10
11
11
12
location ~* \.(css|gif|ico|jpeg|jpg|js|png)$ {
12
13
expires 24h;
13
- log_not_found off;
14
14
}
15
15
16
16
location ~ \.php$ {
You can’t perform that action at this time.
0 commit comments