此配置之前正在运行,现在不是。
我应该提到这是Django,Gunicorn和Nginx。
我们正在努力让https://toontowninfinite.com/rpc/使用http,而不是SSL。并且网站的其余部分使用SSL。
这是配置:
server {
listen 80;
# Force HTTPS!
server_name toontowninfinite.com;
# Well, excluding the RPC server. (thanks chan!)
location /rpc/ {
proxy_set_header Host $host;
proxy_pass http://toontowninfinite;
}
location / {
rewrite ^ https://$server_name$request_uri? permanent;
add_header Access-Control-Allow-Origin *;
}
}
我在这里没有看到任何错误,有关为什么它仍在逼迫的任何建议?
感谢。