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

nginx前置的话,有办法实现吗? #72

Open
shaloushu opened this issue Apr 11, 2023 · 2 comments
Open

nginx前置的话,有办法实现吗? #72

shaloushu opened this issue Apr 11, 2023 · 2 comments

Comments

@shaloushu
Copy link

     location / {
            proxy_pass http://127.0.0.1:8443;
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
}

使用nginx监听443,并且配置好了证书
sniproxy.conf修改listener
listener 127.0.0.1:8443 {
proto tls
access_log {
filename /var/log/sniproxy/https_access.log
priority notice
}
}
status nginx和sniproxy都正常。但是无法使用(指解锁鸡更改了DNS,奈飞等被劫持的网址全部无法访问,网络错误)
有方案吗?大佬。

@shaloushu
Copy link
Author

nginx修改的是/etc/nginx/nginx.conf

@shaloushu
Copy link
Author

改成nsiproxy前置了,完美解决。

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

1 participant