I've setup a server with Varnish at port 80, nginx at port 8081 and apache2 at 81. Varnish uses nginx in after sales, nginx does a reverse proxy for apache2.

Then when I click www.domain_title.com/index.php, it really works fine and shows URL in same format. But when i click any link present around the page, link changes from http://www.domain_name.com/mydata/server.php to http://www.domain_name.com:81/mydata/server.php.

Can anybody help me in solving this problem. I've attempted so much from wiki and google. Thank ahead of time.

attempt to obvious your browsers cache