2014-04-08 4 views
1

nginx 프록시 뒤에 openstack API를 숨기려고합니다.nginx 프록시 뒤의 Openstack API

location /image/api { 
    proxy_pass http://192.168.200.1:9292/; 
    proxy_set_header X-Real-IP $remote_addr; 
    proxy_set_header Host $host; 
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 
} 

나는 눈 이미지 목록

[08/Apr/2014:18:15:07 +0200] 185.39.228.x - - - to: 192.168.200.1:5000: POST /identity/main/tokens HTTP/1.1 upstream_response_time 0.077 msec 1396973707.015 request_time 0.077 
185.39.228.x - - [08/Apr/2014:18:15:07 +0200] "POST /identity/main/tokens HTTP/1.1" 200 4128 "-" "python-keystoneclient" 
[08/Apr/2014:18:15:07 +0200] 185.39.228.x - - - to: 192.168.200.1:9292: GET /image/api/v1/images/detail?sort_key=name&sort_dir=asc&limit=20 HTTP/1.1 upstream_response_time 0.202 msec 1396973707.280 request_time 0.202 
185.39.228.x - - [08/Apr/2014:18:15:07 +0200] "GET /image/api/v1/images/detail?sort_key=name&sort_dir=asc&limit=20 HTTP/1.1" 200 3381 "-" "python-glanceclient" 

를 사용하는 경우하지만 수평선을 사용할 때 오류를 얻을

[08/Apr/2014:18:15:29 +0200] 217.20.186.x - - - to: -: GET /v1/images/detail?limit=21 HTTP/1.1 upstream_response_time - msec 1396973729.046 request_time 0.000 
217.20.186.x - - [08/Apr/2014:18:15:29 +0200] "GET /v1/images/detail?limit=21 HTTP/1.1" 404 177 "-" "python-glanceclient" 

나는 수평선 후 링크가 조금 컷이라고 볼 수 있지만, 왜?

답변

0

horizon이 파이썬 클라이언트보다 큰 헤더를 요청한 것으로 보입니다.이 헤더는 기본 제한 인 nginx를 초과합니다. 나를 위해, 설정

large_client_header_buffers 4 16k; 

이 문제를 해결했습니다.