-
Notifications
You must be signed in to change notification settings - Fork 773
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
我的反向代理哪里配置错误? #118
Comments
编译nginx时加了ssl没? 见 #114 |
谢谢回复。下面这个信息是不是意味着加了ssl了?
|
加了. 那我也不知為啥 |
试试最新的 dev 分支 |
我的配置文件如下:
`server {
listen 80;
server_name g.my.net g.you.net ssma.my.net ssma.you.net;
location / {
proxy_pass https://g.my.net/;
}
}
upstream www.google.com {
server 172.217.24.228:443;
server 216.58.208.100:443;
server 172.217.18.68:443;
server 216.58.219.36:443;
server 216.58.223.4:443;
server 172.217.1.196:443;
server 216.58.193.100:443;
}
server {
listen 443;
server_name g.my.net g.you.net ssma.my.net ssma.you.net;
ssl on;
ssl_certificate /etc/letsencrypt/live/g.my.net/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/g.my.net/privkey.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM;
ssl_session_cache shared:SSL:10m;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
keepalive_timeout 70;
resolver 8.8.8.8;
}`
当我直接访问 https://g.my.net 的时候,Chrome或者firefox会提示类似的信息:
g.my.net redirected you too many times.
Try:
Reloading the page
Clearing your cookies
ERR_TOO_MANY_REDIRECTS
但如果我用: https://g.my.net/search?q=8964 就可以正常搜索。
我的问题到底出在哪里?请各位达人指教。谢谢。
The text was updated successfully, but these errors were encountered: