Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修改启动配置文件uwsgi:(必须修改,其中/home/jm/uwsgi修改为实际的路径) #73

Open
Tender-Liu opened this issue Nov 12, 2018 · 0 comments

Comments

@Tender-Liu
Copy link

Tender-Liu commented Nov 12, 2018

配置完成项目,但是nginx访问后,项目日志报错
invalid request block size: 21573 (max 4096)...skip
nginx启动没有问题,访问是502 Bad Gateway
求解决
``
nginx配置如下
server {
listen 80;
server_name cmdb.com;
proxy_buffer_size 64k;
proxy_buffers 32 32k;
proxy_busy_buffers_size 128k;

    location /static {
        alias /data/cmdb/static;
    }
    #location /static/admin {
    #alias /usr/local/python2.7/lib/python2.7/site-packages/django/contrib/admin/static/admin;
    #}
    location  /static/ueditor {
    expires 30d;
    alias /data/cmdb/DjangoUeditor/static/ueditor;
    }
    location / {
            include uwsgi_params;
            uwsgi_pass 172.28.5.50:8100;
    }

}
``

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant