当前位置:论坛首页 > Linux面板 > 求助

用面板下载了nginx想实现多台tomcat负载均衡,但是失败,求救

发表在 Linux面板2018-8-7 14:17 [复制链接] 2 1250

求救,怎么回事
使用道具 举报 只看该作者 回复
发表于 2018-8-7 14:19:05 | 显示全部楼层
    upstream backserver {
          server 106.14.173.2:8080;
          server 106.14.173.2:8082;
        }
        server
    {
        listen 80;
        server_name localhost:80;
     
        include enable-php.conf;
                location / {
                       proxy_set_header X-real-ip $remote_addr;
                proxy_pass http://backserver;
        }
        
        location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
        {
            expires      30d;
        }

        location ~ .*\.(js|css)?$
        {
            expires      12h;
        }

        location ~ /\.
        {
            #deny all;
        }

        access_log  /www/wwwlogs/access.log;
    }
include /www/server/panel/vhost/nginx/*.conf;
使用道具 举报 回复 支持 反对
发表于 2018-8-7 14:19:43 | 显示全部楼层
管理员,管理员,求救啊
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表