Hi. Есть такой конфиг nginx:
server {
listen 80;
# Grafana
location / {
add_header Access-Control-Allow-Origin "*";
proxy_pass http://127.0.0.1:3000/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
# Graphite
location /graphite/ {
#add_header Access-Control-Allow-Origin "*";
proxy_pass http://127.0.0.1:8000/;
#proxy_set_header Host $host;
#proxy_set_header X-Real-IP $remote_addr;
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
При попытке зайти по
192.168.42.30/graphite в логе nginx такое
172.16.0.86 - - [11/Jan/2016:17:07:07 +0300] "GET /graphite/ HTTP/1.1" 200 542 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36"
172.16.0.86 - - [11/Jan/2016:17:07:07 +0300] "GET /browser/header/ HTTP/1.1" 404 1251 "http://192.168.42.30/graphite/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36"
172.16.0.86 - - [11/Jan/2016:17:07:07 +0300] "GET /composer/? HTTP/1.1" 404 1251 "http://192.168.42.30/graphite/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36"
Вторая и третья строчка от Grafana. Подскажите как правильно организовать location -- graphite?