onemanager-php domainforproxy反向代理

/ 0评 / 0

配置好宝塔后,反代配置完整如下

#PROXY-START/


location /
{
expires 12h;
if ($request_uri ~* "(php|jsp|cgi|asp|aspx)")
{
expires 0;
}
proxy_pass https://4nf6ds-my.sharepoint.com;
proxy_set_header Host 4nf6ds-my.sharepoint.com;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_buffering off;
proxy_cache off;
proxy_set_header X-Forwarded-Proto $scheme;
add_header X-Cache $upstream_cache_status;
}

#PROXY-END/

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注