Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-03-28, 12:25:03

Author Topic: resolve 'The page isn’t redirecting properly'  (Read 6070 times)

0 Members and 1 Guest are viewing this topic.

Offline letux

  • Valuable Member
  • *
  • Posts: 131
  • Karma: +0/-0
    • View Profile
resolve 'The page isn’t redirecting properly'
« on: 2016-11-11, 15:32:46 »
you  will got problem when Enable SSl 'i'am use let'sencrypt' with Apache and NginX-proxy.

Ok, Then ..
If you want to Enable SSl with Apache and NginX-Proxy you shuld follow this steps.

1- open SSh and login as root
2- then
Code: [Select]
cd '/opt/configs/nginx/conf/globals' 3- you will fiend four files
--- proxy_standard.conf
--- proxy_standard_ssl.conf
--- proxy_wildcards.conf
--- proxy_wildcards_ssl.conf

copy every file to custom file :

Code: [Select]
cp proxy_standard.conf custom.proxy_standard.conf
Code: [Select]
cp proxy_standard_ssl.conf  custom.proxy_standard_ssl.conf
Code: [Select]
cp proxy_wildcards.conf custom.proxy_wildcards.conf
Code: [Select]
cp proxy_wildcards_ssl.conf custom.proxy_wildcards_ssl.conf
and now you have custom copy from proxy files,

4- edit custom proxy files by vim or nano
Code: [Select]
nano custom.proxy_standard.conf
Find all the lines where it says proxy_set_header and add this line:
Quote
proxy_set_header X-Forwarded-Protocol $scheme;

Code: [Select]
nano custom.proxy_standard_ssl.conf
Find all the lines where it says proxy_set_header and add this line:
Quote
proxy_set_header X-Forwarded-Protocol $scheme;

Code: [Select]
nano custom.proxy_wildcards.conf
Find all the lines where it says proxy_set_header and add this line:
Quote
proxy_set_header X-Forwarded-Protocol $scheme;

Code: [Select]
nano custom.proxy_wildcards_ssl.conf
Find all the lines where it says proxy_set_header and add this line:
Quote
proxy_set_header X-Forwarded-Protocol $scheme;

5- after that run
Code: [Select]
sh /script/fixweb; sh /script/restart-all
6- Add this to the .htaccess of the domain with ssl:
Quote
SetEnvIf X-Forwarded-Protocol https HTTPS=on

------
if you still have problem, join to CP and open domain panel => Web Features
and change "Strict-Transport-Security "max-age=2592000; preload"" to "No-Strict-Transport-Security "max-age=2592000; preload""

and don't forgot set 'site url' in application using 'https://' instead 'http://'

thanks for chrisf
https://forum.mratwork.com/kloxo-mr-tips-and-tricks/php-force-redirect-ssl-nginxproxy-endless-loop/
and many thanks for Mostafa Ramadan
https://forum.mratwork.com/kloxo-mr-technical-helps/error-when-browsing-ssl-site/

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.028 seconds with 21 queries.

web stats analysis