SHOW:
|
|
- or go back to the newest paste.
1 | http { | |
2 | ||
3 | #server for regular 80 port | |
4 | server { | |
5 | listen 80; | |
6 | #rest of your existing config | |
7 | } | |
8 | ||
9 | #add clean server for test purpose | |
10 | server { | |
11 | listen 8080; | |
12 | root EmptyHtml; | |
13 | ||
14 | location ~/(robots.txt|readme.html) { | |
15 | - | access_log logs/nginx-access-robots.log; |
15 | + | access_log logs/nginx-access-robots.log; |
16 | - | deny all; |
16 | + | deny all; |
17 | - | } |
17 | + | } |
18 | } | |
19 | } |