OLD | NEW |
1 server { | 1 error_page 500 502 503 504 /50x.html; |
2 listen 80 default_server; | 2 location = /50x.html { |
3 listen [::]:80 default_server; | 3 root html; |
4 server_name stats.adblockplus.org; | |
5 location / { | |
6 rewrite (.*) https://stats.adblockplus.org$1 permanent; | |
7 } | |
8 } | 4 } |
9 | 5 |
10 server { | 6 keepalive_timeout 0; |
11 listen 443 ssl default_server; | 7 root /var/www/stats; |
12 listen [::]:443 ssl default_server; | |
13 server_name stats.adblockplus.org; | |
14 ssl_certificate sites-available/adblockplus.org_sslcert.pem; | |
15 ssl_certificate_key sites-available/adblockplus.org_sslcert.key; | |
16 | 8 |
17 error_page 500 502 503 504 /50x.html; | 9 location /static { |
18 location = /50x.html { | 10 root /opt/sitescripts/sitescripts/stats; |
19 root html; | 11 } |
20 } | |
21 | 12 |
22 access_log /var/log/nginx/access_log_stats main; | 13 location /download { |
23 keepalive_timeout 0; | 14 auth_basic "Stats Restricted Access"; |
24 root /var/www/stats; | 15 auth_basic_user_file /var/www/htpasswd; |
| 16 } |
25 | 17 |
26 location /static { | 18 location /update { |
27 root /opt/sitescripts/sitescripts/stats; | 19 auth_basic "Stats Restricted Access"; |
28 } | 20 auth_basic_user_file /var/www/htpasswd; |
| 21 } |
29 | 22 |
30 location /download { | 23 location /notification { |
31 auth_basic "Stats Restricted Access"; | 24 auth_basic "Stats Restricted Access"; |
32 auth_basic_user_file /var/www/htpasswd; | 25 auth_basic_user_file /var/www/htpasswd; |
33 } | 26 } |
34 | 27 |
35 location /update { | 28 location /raw { |
36 auth_basic "Stats Restricted Access"; | 29 alias /var/www/statsdata; |
37 auth_basic_user_file /var/www/htpasswd; | 30 auth_basic "Stats Restricted Access"; |
38 } | 31 auth_basic_user_file /var/www/htpasswd; |
39 | |
40 location /notification { | |
41 auth_basic "Stats Restricted Access"; | |
42 auth_basic_user_file /var/www/htpasswd; | |
43 } | |
44 | |
45 location /raw { | |
46 alias /var/www/statsdata; | |
47 auth_basic "Stats Restricted Access"; | |
48 auth_basic_user_file /var/www/htpasswd; | |
49 } | |
50 } | 32 } |
OLD | NEW |