0
私は次のように構成Ngnixを使用してい
:私はOPTIONS要求をリダイレクトする必要はありませんが、私はエラーが持っているnginxの無効状態 "="
upstream sync {
server couchbase-sync:4984;
}
server {
listen 4984;
server_name ${WEBAPP_HOST};
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' '*';
add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';
location/{
if ($request_method = OPTIONS) {
return 204;
}
proxy_pass http://sync;
}
}
を:どうすればよい
nginx_1 | 2017/01/20 09:23:40 [emerg] 9#9: invalid condition "=" in /etc/nginx/conf.d/webapp.conf:13 nginx_1 | nginx: [emerg] invalid condition "=" in /etc/nginx/conf.d/webapp.conf:13
を私は私の問題を解決する? Official Doc
は、このファイルの後処理ですか?たぶん '$ request_method'文字列がマングル化されているかもしれません。 'nginx -T'を試して、' nginx'が見ているものを見てください。 –