1

I just installed varnish on my site and got this problem... If I go to my site (http://techhamlet.com/) and click on the top link for the forum, the browser takes some tme and then takes me to http://techhamlet.com:8080/forum/ (Its broken!) It should go to http://techhamlet.com/forum/... Sometimes it works and sometimes it give this problem! How can I fix this?

I have Nginx installed in my Ubuntu server... Please help!

(I saw the same problem in serverfault but the answer says its a apache problem... In here im using Nginx!)

3
  • 1
    Try adding port_in_redirect off; to your nginx.conf.
    – cyberx86
    Mar 21, 2012 at 18:48
  • @cyberx86 Thanks a lot my friend! It solved the problem!
    – THpubs
    Mar 22, 2012 at 2:39
  • Please mark cyberx86's answer as correct!
    – 3molo
    Mar 22, 2012 at 8:52

1 Answer 1

3

Adding port_in_redirect off; to your nginx.conf should fix the problem. As the name suggests, this directive will prevent Nginx from adding the port to the url when a request is redirected.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .