Important Notice: Effective immediately, all support will be handled through Discord. Read more about the changes coming to Anodyne's services.

Reverse proxy with HTTPS offload, NOVA thinks it is on HTTP

Having a problem getting Nova installed? Can't figure out why something isn't working right? This is the place to get help and report any bugs you find with Nova!

LcNessie Wed Jun 27, 2018 6:34 am

Reverse proxy with HTTPS offload, NOVA thinks it is on HTTP

Hello,

I am trying to run NOVA behind a reverse proxy with https offload. Let's call it https://nova.myserver.com
However, since Nova itself is running on a HTTP server, it thinks it is actually running without https, trying to invoke all the subcomponents on http://nova.myserver.com

Is there a way to tell Nova to search for its components on httpS://nova.myserver.com?

If I configure the reverse proxy to serve Nova over regular http, it all works fine, so I do have a workaround.

Posts: 10


AgentPhoenix Thu Jun 28, 2018 1:00 am

Re: Reverse proxy with HTTPS offload, NOVA thinks it is on H

Nova attempts to intelligently build the URL for the site for you. (Helpful, huh?) Turns out, you've managed to trick Nova. I think you can get around it by explicitly setting the base URL. In order to do that, you can put this line:

Code: Select all
$config['base_url'] = 'https://reverse-proxy.nova.site';

In your application/config/config.php file after it pulls in everything from the core. That SHOULD force Nova to use the URL you're specifying instead of what it thinks it should be.
User avatar

Posts: 7596


LcNessie Thu Jun 28, 2018 7:20 am

Re: Reverse proxy with HTTPS offload, NOVA thinks it is on H

Hello AgentPhoenix,

Thanks for your reaction. This seems to have done the trick.
(Especially after replacing 'https://reverse-proxy.nova.site' with my actual site, of course... Hurrderp... 8) )

I guess https://fawkes.lcnessie.nl is live...

Posts: 10


AgentPhoenix Thu Jun 28, 2018 9:59 am

User avatar

Posts: 7596



Return to Help

Who is online

Users browsing this forum: Bing [Bot] and 2 guests

cron