2

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!

asciitaxi
  • 143
  • 3

1 Answers1

1

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)

DerfK
  • 19,313
  • 2
  • 35
  • 51