Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add this behind Reverse Proxy that serves SSL #4

Open
enoch85 opened this issue Aug 17, 2016 · 1 comment
Open

Add this behind Reverse Proxy that serves SSL #4

enoch85 opened this issue Aug 17, 2016 · 1 comment

Comments

@enoch85
Copy link
Member

enoch85 commented Aug 17, 2016

define('FORCE_SSL_ADMIN', true);
if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
        $_SERVER['HTTPS']='on';
@enoch85
Copy link
Member Author

enoch85 commented Nov 15, 2016

+this in Nginx

proxy_set_header X-Forwarded-Proto https;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant