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 proxy + cloudflare + https = 403 Forbidden cloudflare-nginx #1014

Closed
f4nff opened this issue Feb 26, 2018 · 3 comments
Closed

nginx proxy + cloudflare + https = 403 Forbidden cloudflare-nginx #1014

f4nff opened this issue Feb 26, 2018 · 3 comments

Comments

@f4nff
Copy link

f4nff commented Feb 26, 2018

upstream ws {
server 104.16.19.234:443;
server 104.16.18.234:443;
server 104.16.10.234:443;
server 104.16.11.234:443;

}

server {
listen 80;

location /{
proxy_pass_header Server;
proxy_pass https://ws;
proxy_set_header Host "cloudflareapi.com";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
}
}

403 Forbidden
cloudflare-nginx

@chobits
Copy link
Member

chobits commented Mar 1, 2018

hi f4nff,

Could you give more detail of this issue, you can output $upstream_status in access.log to check whether 403 is responsed by backend server.

Also you can request backend server directly to check.

@f4nff
Copy link
Author

f4nff commented Mar 1, 2018

add

proxy_ssl_server_name on;
proxy_ssl_name "www.cloudflare.com";

ok~

@chobits
Copy link
Member

chobits commented Mar 1, 2018

add

proxy_ssl_server_name on;
proxy_ssl_name "www.cloudflare.com";

ok~

think it resolved, I am closing this issue. You can reopen this issue if having any problem.

@chobits chobits closed this as completed Mar 1, 2018
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