Elgg with Nginx and FastCGI, behind an Nginx Reverse Proxy

Dear All,

I am trying to install Elgg inside a FreeBSD jail that runs the PHP environment as well as Nginx to act as FastCGI server.
For security reasons, all web applications are proxied reversely through a fornt-line Nginx server in a different jail.

While I can get Nginx configured via the /install.php page, and get the database populated, etc., calling the site itself afterwards fails miserably, because Elgg does not seem to play ball with proxy headers: Even though I set the site correctly, assets do not seem to honour the site setting, and all I get is a raw, un-formated login page, which is unable to produce any links.

Does anyone have a similar setup (never mind the FreeBSD bit)?

Thanks a lot,

Chris