首页 新闻 会员 周边 捐助

求帮助,nginx配置后 访问域名一直提示重定向次数过多。

0
悬赏园豆:20 [已关闭问题] 关闭于 2020-09-27 16:19
worker_processes  8;

events {
    worker_connections  8192;
}

http {
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        off;

    server_names_hash_bucket_size 128;
    map_hash_bucket_size 64;

    client_body_timeout   10;
    client_header_timeout 10;
    keepalive_timeout     30;
    send_timeout          10;
    keepalive_requests    10;

	client_max_body_size 100m; 
	upstream a123.com{
        server localhost:8080 weight=1;
    }
	
    server {
        listen       80;
        server_name a123.com;
	client_max_body_size 1000M;
        client_body_buffer_size 120M;
        fastcgi_intercept_errors on;
		location / {
			rewrite ^(.*)$  http://www.a123.com$1 permanent;
		}
    }
}

配置文件哪里有问题?怎么修改?

好好学习勤学好问的主页 好好学习勤学好问 | 初学一级 | 园豆:183
提问于:2020-09-27 16:00
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册