您好如何在<strong> nginx 中为 www.xnxx.com 这样的网站进行反向代理,并为所有网页内的数据,例如通过反向代理的视频和图像。到目前为止的配置,但通过我却出现错误502 Bad Gateway
server {
listen 80;
error_log /var/log/nginx/error.log debug;
server_name *.xnxx.works xnxx.works;
location / {
proxy_pass https://www.xnxx.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 'https://xnxx.com' '';
sub_filter_once off;
}
}