server {
    listen         80;
    server_name    www.xxxx.com “空格分割"xxxx.com;
    charset UTF-8;
    access_log off;
    error_log       ”日志保存地址“;

    client_max_body_size 75M;

    location / {
        include uwsgi_params;
        uwsgi_pass 127.0.0.1:9573;
        uwsgi_read_timeout 1800;  
        uwsgi_send_timeout 300;  
        proxy_read_timeout 300;  
    }
    location /static {
        expires 30d;
        autoindex on;
        add_header Cache-Control private;
        alias ”静态文件地址“
     }
 }

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐