如何使用反向代理(如 download.mikrorik.com )使子域进入子目录进入 xnxx.works/下载并从 download.mikrotik.com 到目前为止的配置中获取数据
server {
listen 80;
server_name *.xnxx.works xnxx.works;
location / {
proxy_pass https://mikrotik.com;
proxy_set_header User-Agent $http_user_agent;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Accept-Encoding "";
proxy_set_header Accept-Language $http_accept_language;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
sub_filter_types *;
sub_filter 'https://download.mikrotik.com' 'http://download.xnxx.works';
sub_filter 'https://mikrotik.com' '';
sub_filter_once off;
}
}
server {
listen 80;
server_name download.xnxx.works;
location / {
proxy_pass https://download.mikrotik.com;
}
}