LEFT | RIGHT |
1 error_page 500 502 503 504 /50x.html; | |
2 location = /50x.html { | |
3 root html; | |
4 } | |
5 | |
6 keepalive_timeout 0; | 1 keepalive_timeout 0; |
7 root /var/www/stats; | 2 root /var/www/stats; |
8 | 3 |
9 location /static { | 4 location /static |
| 5 { |
10 root /opt/sitescripts/sitescripts/stats; | 6 root /opt/sitescripts/sitescripts/stats; |
11 } | 7 } |
12 | 8 |
13 location /download { | 9 location /download |
| 10 { |
14 auth_basic "Stats Restricted Access"; | 11 auth_basic "Stats Restricted Access"; |
15 auth_basic_user_file /var/www/htpasswd; | 12 auth_basic_user_file /var/www/htpasswd; |
16 } | 13 } |
17 | 14 |
18 location /update { | 15 location /update |
| 16 { |
19 auth_basic "Stats Restricted Access"; | 17 auth_basic "Stats Restricted Access"; |
20 auth_basic_user_file /var/www/htpasswd; | 18 auth_basic_user_file /var/www/htpasswd; |
21 } | 19 } |
22 | 20 |
23 location /notification { | 21 location /notification |
| 22 { |
24 auth_basic "Stats Restricted Access"; | 23 auth_basic "Stats Restricted Access"; |
25 auth_basic_user_file /var/www/htpasswd; | 24 auth_basic_user_file /var/www/htpasswd; |
26 } | 25 } |
27 | 26 |
28 location /raw { | 27 location /raw |
| 28 { |
29 alias /var/www/statsdata; | 29 alias /var/www/statsdata; |
30 auth_basic "Stats Restricted Access"; | 30 auth_basic "Stats Restricted Access"; |
31 auth_basic_user_file /var/www/htpasswd; | 31 auth_basic_user_file /var/www/htpasswd; |
32 } | 32 } |
LEFT | RIGHT |