意图是,在nginx上配个location/attendance
,所有请求这台nginx的/attendance
路由转发到https://example.me.com
// nginx.conf
// upstream
upstream attendance {
proxy_pass https://example.me.com/
}
// location
server {
listen 80 default_server;
...
location /attendance {
proxy_pass http://attendance/;
}
}
报404 not found
怎么trouble shoot,怎么改,有人指点下吗