0

I'm trying to add subdomain news.abc.com for my django application and forward it to example.com/news/ And NGINX keeps redirecting whatever i do. My current config is

server {
    server_name news.example.com www.news.example.com;
    location / {
        proxy_pass https://www.example.com/news/;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }

    listen 443 ssl; 

}

And it just keeps redirecting me to example.com/news, but i just want content from that page without redirecting

0 Answers0