Website is running on apache behind nginx. There is one link that open up pdf file. But while clicking the link the site redirects to main page instead of pdf. The logs show http 301 code.