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

想请教下已经按照上方说明安装完成,但启用cloudflare CDN就不能链接了 #18

Open
kankankankankankan opened this issue Aug 3, 2018 · 6 comments

Comments

@kankankankankankan
Copy link

kankankankankankan commented Aug 3, 2018

按照说明也通过测试,但启用CDN后就不能链接
是否哪里还需要做改动?

感谢

@SchrodingerZhu
Copy link

我也是,启用后出现403错误,应当是配置问题,请修复。

@6shell
Copy link

6shell commented Aug 16, 2018

[经过测试,参照523860169给出的答案,如果需要启用cloudflare就需要手动修改/etc/nginx/v2ray.conf文件,取消伪装域名,仅采用路径分流的形式,按照此种说法,需要将$http_host = "www.****.com" 修改为$http_upgrade = "websocket",作为一个门外汉,这是我自己测试过可行的笨办法

@6shell
Copy link

6shell commented Sep 10, 2018

@171621

	location / {
	proxy_redirect off;
	proxy_http_version 1.1;
	proxy_set_header Upgrade $http_upgrade;
	proxy_set_header Connection "upgrade";
	proxy_set_header Host $http_host;
	if ($http_upgrade = "websocket") {
  proxy_pass http://127.0.0.1:xxxx;
	}
	}

127.0.0.1:xxxx为对应的端口

@171621
Copy link

171621 commented Sep 10, 2018

#18 (comment)

@simoneva Deleted

@6shell
Copy link

6shell commented Sep 12, 2018

@171621 是的,好久之前设置的,忘记给你说确实需要去掉伪装的站点才能正常连接

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

5 participants
@171621 @kankankankankankan @SchrodingerZhu @6shell and others