Skip to content

Commit 326dd51

Browse files
committed
* Added a redirect for Do Not Track as per https://www.eff.org/dnt-policy
1 parent a1d3904 commit 326dd51

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

CHANGELOG.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,35 @@
11
# Nginx-Craft Changelog
22

3-
## 1.0.3 -- 2016.12.10
3+
## 1.0.4 - 2017.03.02
4+
5+
* [Added] Added (commented out) support for error logging going to `SYSLOG` for log services
6+
* [Added] Redirect bots probing the site for WordPress vulnerabilities
7+
* [Added] Added information on `opcache`
8+
* [Improved] Removed `le-well-known.conf` so that it doesn't conflict with default Forge setups
9+
* [Added] Added a redirect for Do Not Track as per https://www.eff.org/dnt-policy
10+
* [Added] Change // -> / for all URLs, so it works for our php location block, too
11+
* [Improved] Updated README.md
12+
13+
## 1.0.3 - 2016.12.10
414

515
* [Added] Added support for localized sites (commented out by default)
616
* [Added] Added `HTTP_PROXY`
717
* [Added] Added `client_max_body_size` to the README.md
818
* [Improved] Updated README.md
919

10-
## 1.0.2 -- 2016.11.30
20+
## 1.0.2 - 2016.11.30
1121

1222
* [Added] Added an example Forge configuration in `forge-example`
1323
* [Added] 301 Redirect URLs with trailing /'s as per https://webmasters.googleblog.com/2010/04/to-slash-or-not-to-slash.html
1424
* [Improved] Updated README.md
1525

16-
## 1.0.1 -- 2016.11.09
26+
## 1.0.1 - 2016.11.09
1727

1828
* [Added] Added `server_tokens off` to disable sending the Nginx version number
1929
* [Added] Added a commented out `Content-Security-Policy` header in `security.conf`
2030
* [Improved] Updated README.md
2131

22-
## 1.0.0 -- 2016.11.01
32+
## 1.0.0 - 2016.11.01
2333

2434
* [Added] Initial release
2535

forge-example/NginxConfiguration.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ server {
1717
merge_slashes off;
1818
rewrite (.*)//+(.*) $1/$2 permanent;
1919

20+
# Handle Do Not Track as per https://www.eff.org/dnt-policy
21+
location /.well-known/dnt-policy.txt {
22+
try_files /dnt-policy.txt /index.php?p=/dnt-policy.txt;
23+
}
24+
2025
# For WordPress bots/users
2126
location ~ ^/(wp-login|wp-admin|wp-config|wp-content|wp-includes|(.*)\.exe) {
2227
return 301 https://wordpress.com/wp-login.php;

sites-available/somedomain.com.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ server {
4949
return 301 https://wordpress.com/wp-login.php;
5050
}
5151

52+
# Handle Do Not Track as per https://www.eff.org/dnt-policy
53+
location /.well-known/dnt-policy.txt {
54+
try_files /dnt-policy.txt /index.php?p=/dnt-policy.txt;
55+
}
56+
5257
# Access and error logging
5358
access_log off;
5459
error_log /var/log/nginx/SOMEDOMAIN.com-error.log error;

0 commit comments

Comments
 (0)