This configuration was working before, and now it is not.
I should mention this is Django,Gunicorn, and Nginx.
We are trying to make https://toontowninfinite.com/rpc/ use http, not SSL. and the rest of the site use SSL.
This is the config:
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 *;
}
}
I do not see anything wrong here, any suggestions as to why it is forcing still?
Thanks.