Skip to content

Instantly share code, notes, and snippets.

@p3x-robot
Last active January 6, 2019 14:45
Show Gist options
  • Save p3x-robot/e85eb0b9426f0302910b6877ef8f918e to your computer and use it in GitHub Desktop.
Save p3x-robot/e85eb0b9426f0302910b6877ef8f918e to your computer and use it in GitHub Desktop.

Revisions

  1. p3x-robot revised this gist Jan 6, 2019. No changes.
  2. p3x-robot revised this gist Jan 6, 2019. 2 changed files with 2 additions and 4 deletions.
    4 changes: 0 additions & 4 deletions configuration.php
    Original file line number Diff line number Diff line change
    @@ -1,4 +0,0 @@
    // before any code add this in
    $_SERVER['HTTPS']='on';
    // then comes the class JConfig
    // then your NGINX reverse proxy will work
    2 changes: 2 additions & 0 deletions domain.com.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    # in the proxy part, add in this:
    proxy_set_header X-Forwarded-Proto https;
  3. p3x-robot created this gist Jan 6, 2019.
    4 changes: 4 additions & 0 deletions configuration.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    // before any code add this in
    $_SERVER['HTTPS']='on';
    // then comes the class JConfig
    // then your NGINX reverse proxy will work