Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问如何只替换伪装网站不重新安装代理 #2

Open
voodka opened this issue Apr 3, 2023 · 1 comment
Open

请问如何只替换伪装网站不重新安装代理 #2

voodka opened this issue Apr 3, 2023 · 1 comment

Comments

@voodka
Copy link

voodka commented Apr 3, 2023

RT
想请教一下大佬
原来选择的伪装站点失效了,因为在好多地方配置了代理,修改起来比较麻烦,请问能否在不重新安装代理的情况下替换伪装站点。

@kurenai-li
Copy link

修改nginx反代配置就好了

DOMAIN="你的域名"
FAKE_SITE="你的新伪装站点"
sed -i "/proxy_pass/s/s .*$/s ${FAKE_SITE};/" ${DOMAIN}.conf
# 确认有没有nginx错误
nginx -t
nginx -s reload

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants