在设置了 负载均衡 后 访问拒绝问题

来源:7-5 实例演示反向代理和负载均衡

obeepub

2019-01-23

老师请问,为何当我设置了负载后,多刷新几次后却提示


访问 food.uxion.net 的请求遭到拒绝

您未获授权,无法查看此网页。

HTTP ERROR 403


================================

配置如下

upstream imooc_hosts{

    #server ip:port;

    server 14.215.177.39:80  weight=3;  #百度

    server 129.28.98.26:80  weight=2;    

}


server {

    listen  80;

    server_name food.uxion.net;

    root /data/www;

    index  index.html index.htm;

    location /{

        #rewrite ^(.*)\.htmp$ /index.html;

         proxy_pass imooc_hosts;

    }

}

===============================

写回答

1回答

编程浪子

2019-01-28

如果只转发 129.28.98.26  到上也是 403 ?

0
0

快速上手Linux 玩转典型应用

以主流CentOS 7 操作系统为例,系统讲解Linux,真实线上环境助你快速上手,独立配置运维服务器

1663 学习 · 572 问题

查看课程