Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I got Varnish on port 80 before lighttpd on port 8080 as a cache. Sometimes when I go to page http://domain.com/ I'm being redirected to http://domain.com:8080. How to prevent this ?

share|improve this question
My guess is that whatever app you have running behind lighttpd is building fully qualified redirects to domain.com:8080 since that's where the app believes it is running. Is it code you wrote or a package like Wordpress? –  daveadams Feb 4 '12 at 16:32

1 Answer 1

up vote 2 down vote accepted

You need both forward and reverse proxy entries to avoid this behavior.

share|improve this answer
It happens to me when I log into FlySpray. –  Spacedust Feb 4 '12 at 21:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.