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

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 127.0.0.1:81. 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 http://127.0.0.1:81/forums/install/index.php.

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

1 Answer 1

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

 
discard

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.