修改移动端对应Nginx配置文件 #

 


    # 找到root 修改成如下
    root /boolcms/cli/takeout;

删除移动端对应Nginx配置文件中的下方内容 #



 








 






 



























    location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|mp3)$
    {
        # 删除 proxy_pass 这一行
        proxy_pass http://172.18.0.1:1210;
        expires      30d;
        error_log off;
        access_log /dev/null;
    }
    
    location ~ .*\.(js|css)?$
    {
        # 删除 proxy_pass 这一行
        proxy_pass http://172.18.0.1:1210;
        expires      12h;
        error_log off;
        access_log /dev/null; 
    }
    
    # 删除下方三块内容
    location / {
        proxy_pass http://172.18.0.1:1210;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header HTTP_X_FORWARDED_FOR $remote_addr;
        proxy_redirect default;
    }

    location /merchant/ {
        proxy_pass http://172.18.0.1:1210;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header HTTP_X_FORWARDED_FOR $remote_addr;
        proxy_redirect default;
    }

    location /delivery/ {
        proxy_pass http://172.18.0.1:1210;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header HTTP_X_FORWARDED_FOR $remote_addr;
        proxy_redirect default;
    }
上次更新: 8/21/2022, 7:37:41 PM