|
|
发表于 2025-11-14 17:30:24
|
显示全部楼层
浙江省温州市
我来说说怎么解决这个问题吧:
第1步:
C:\Windows\System32\drivers\etc\hosts里面添加
127.0.0.1 file.eyuyan.la
并保存
第2步:
准备个nginx windows版本,修改nginx.conf文件为以下内容:
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name file.eyuyan.la;
location / {
proxy_pass http://file.eyuyan.cn;
proxy_set_header Host file.eyuyan.cn;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# 可选:设置一些超时时间
proxy_connect_timeout 30s;
proxy_send_timeout 60s;
proxy_read_timeout 60s;
# 可选:处理重定向
proxy_redirect http://file.eyuyan.cn/ http://file.eyuyan.la/;
}
}
}
第三步:双击nginx.exe文件,就可以下载支持库了
|
|