location ~ /^(?:https?:\/\/)?mikanani\.me(.*) {
# 匹配到 URI 路径中含有"https://mikanani.me"的情况
proxy_ssl_server_name on;
proxy_pass 'https://mikanani.me/$1';
sub_filter 'mikanani.me' $my_filter;
sub_filter_once off;
# Check if the request is for RSS
add_header X-Request-URL https://mikanani.me$request_uri;
}
正常的如果是 location /的话直接改对应的域名即可,但是想一个域名实现对好几个站的反代,(假设我的域名是 abc.com)
我访问 abc.com/abc 和访问 abc.com/https://mikanani.me/abc,两者都应该反代到 https://mikanani.me/abc ,求问该如何实现