server {
listen 80;
server_name localhost;
charset utf-8;
location / {
proxy_pass http:/我的服务器:8080/me;
index index.html index.htm;
}
}
配置里这么写的 我访问我的服务器80端口就重定向次数过多应该怎么解决
server {
listen 80;
server_name localhost;
charset utf-8;
location / {
proxy_pass http:/我的服务器:8080/me;
index index.html index.htm;
}
}
配置里这么写的 我访问我的服务器80端口就重定向次数过多应该怎么解决
改下你得location
location / {
proxy_pass http://localhost:8080;
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 Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}