Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i've got a django app running on apache behind an nginx reverse proxy. Nginx takes requests on port 80 and forwards them to apache on This works fine.

Now I want to run phpbb on apache under /forums. My problem is that when phpbb does a redirect, it seems to redirect to the internal apache port, rather than port 80. So, for instance when I first go to http://my-dev-server/forums to configure php bb, it immediately redirects to

Is there something I need to do in nginx/apache/phpbb config to get it to redirect to the external port? Thanks very much!

share|improve this question
up vote 1 down vote accepted

I've not used phpbb myself, but according to the function generate_board_urls() there's a config value called "force_server_vars". When this is set you must also configure "server_protocol" (eg "http"), "server_name" ("my-dev-server"), "server_port" ("80") and "server_path" (I presume "/forums" or some variation)

share|improve this answer
Good grief, I'm not sure how this didn't occur to me. Thanks very much. – asciitaxi Dec 22 '10 at 1:46

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.