登录并设置cookie后,出现错误502。读取日志时,出现错误:
014/05/17 01:54:43 [error] 11013#0: *8 upstream sent too big header while reading response header from upstream, client: 83.248.134.236, server: , request: "GET /administration HTTP/1.1", upstream:
经过一番快速搜索之后,我发现:http : //developernote.com/2012/09/how-i-fixed- nginx-502-bad-gateway-error/
我想尝试将fastcgi_buffers和fastcgi_buffer_size设置为其他值。但是我如何在Amazon Elasticbeanstalk的Nginx上设置变量?
Nginx服务器在我的docker实例之前。
我还需要修改nginx配置。
/etc/nginx/sites-enabled/elasticbeanstalk-nginx-docker.conf
service nginx restart
ebextension配置示例是.ebextensions/01modify_nginx.config:
.ebextensions/01modify_nginx.config
container_commands: copy: command: "cp .ebextensions/01rewrite_nginx_config.py /opt/elasticbeanstalk/hooks/appdeploy/enact/" make_exe: command: "chmod +x /opt/elasticbeanstalk/hooks/appdeploy/enact/01rewrite_nginx_config.py"
现在,这对于我的项目来说效果很好(可以在此处查看运行中的源代码)。