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. 2017-11-07, 14:59:02

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

0 Members and 1 Guest are viewing this topic.

Offline letux

  • Valuable Member
  • *
  • Posts: 129
  • 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
kloxo-mr-tips-and-tricksphp-force-redirect-ssl-nginxproxy-endless-loop.html
and many thanks for Mostafa Ramadan
kloxo-mr-technical-helpserror-when-browsing-ssl-site.html

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine

Page created in 0.045 seconds with 19 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM