MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: vyjhala on 2015-02-08, 13:19:04

Title: Problem in Nginxproxy(Solved)
Post by: vyjhala on 2015-02-08, 13:19:04
Hi,

I unable access my  website  if I use Nginxproxy and Apache with SSL .

But if  I use only Nginx then I able to view my website with SSL.

Tell  me how to fix this problem  i want to Nginxproxy and Apache with SSL.

My System Information  :-

A. Kloxo-MR: 7.0.0.b-2015020401

B. OS: CentOS release 6.6 (Final) i686

C. Apps:
   1. MySQL: mysql55-5.5.41-2.ius.el6.i686
   2. PHP: php54-5.4.37-1.ius.el6.i686
   3. Httpd: httpd-2.2.29-1.mr.el6.i386
   4. Lighttpd: --uninstalled--
   5. Hiawatha: hiawatha-9.11.0-f.4.mr.el6.i386
   6. Nginx: nginx-1.7.9-1.el6.ngx.i386
   7. Cache: varnish-3.0.6-1.el6.i686
   8. Dns: bind-9.9.5-1.el6.i686
   9. Qmail: qmail-toaster-1.03-1.3.46.mr.el6.i386
      - with: courier-imap-toaster-4.1.2-1.3.18.mr.el6.i386

D. Php-type (for Httpd/proxy): php-fpm_event

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:           128        121          6        159          0         69
   -/+ buffers/cache:         51         76
   Swap:          128        120          7


Thanks
Title: Re: Problem in Nginxproxy
Post by: MRatWork on 2015-02-08, 22:51:45
What's error message?.
Title: Re: Problem in Nginxproxy
Post by: vyjhala on 2015-02-09, 01:57:43
Hi,
When access my website with https in Nginxproxy  with apache backend  i get this error " page cannot display" or connection refuse .

As I say before in normal  Nginx  with SSL  is working properly .

 
 
Title: Re: Problem in Nginxproxy
Post by: MRatWork on 2015-02-09, 05:25:56
In nginx-proxy, communicate from nginx to apache using http but add special header.
Title: Re: Problem in Nginxproxy
Post by: vyjhala on 2015-02-09, 06:14:22
Hi,
hmm ok so how to solve this problem ?
Title: Re: Problem in Nginxproxy
Post by: MRatWork on 2015-02-09, 08:26:38
What's application (example: wordpress) for your website?
Title: Re: Problem in Nginxproxy
Post by: vyjhala on 2015-02-09, 09:13:09
Hi,
I am using wordpress to run my website
Title: Re: Problem in Nginxproxy
Post by: vyjhala on 2015-02-10, 05:08:54
Hi Admin,

You did not reply it how to solve this problem ?
Title: Re: Problem in Nginxproxy
Post by: MRatWork on 2015-02-10, 06:17:50
What's your website address?.
Title: Re: Problem in Nginxproxy
Post by: vyjhala on 2015-02-10, 08:31:44
Ok my website address is https://www.myblogpage.tk

You can see it website is unable to open with https this happen only when i use NginxProxy.




Title: Re: Problem in Nginxproxy
Post by: MRatWork on 2015-02-10, 08:39:00
Did you try your domain without using cloudflare?.
Title: Re: Problem in Nginxproxy
Post by: vyjhala on 2015-02-10, 10:19:44
Yes, I  think problem in NgnixProxy SSL   not from cloudflare  cloud  .



Title: Re: Problem in Nginxproxy
Post by: MRatWork on 2015-02-10, 11:31:55
Yes, I  think problem in NgnixProxy SSL   not from cloudflare  cloud  .
What's about when sending from apache/httpd or hiawatha/hiawatha-proxy?.

I think there are something wrong with your dns setting. I found error for MX when checking with intodns.com
Title: Re: Problem in Nginxproxy
Post by: vyjhala on 2015-02-10, 11:47:28
If I only  use normal Nginx without Apache as backend   then SSL is 100 %  working I tested it.

Therefore there is no problem with dns setting and I removed MX Record.
 
Problem  only with NginxProxy  .

If problem not solve, I think I  have no option I have to use separately  either Nginx or Apache  for SSL :(

You should test  NginxProxy   in your Server with SSL Enable   in Kloxo-Mr 7 Beta Version  .
Title: Re: Problem in Nginxproxy
Post by: MRatWork on 2015-02-10, 19:39:05
No matter using nginx or nginx-proxy where ssl handle by nginx. In nginx-proxy, communicate nginx to apache always use non-ssl with special header. So, the problem is your application side.

Example, this forum website (http://forum.mratwork.com) avoid https but primary website (http://mratwork.com) accept https but wrong display.
Title: Re: Problem in Nginxproxy
Post by: vyjhala on 2015-02-10, 22:35:24
hmm ok  i am using wordpress I think  Nginxproxy  ssl  not support properly wordpress site  I will remove NginxProxy

 if I want to use ssl  then I have  start  use only nginx or apache  for SSL  and  it work perfectly  that I am sure .

Anyways thanks for your support  .
Title: Re: Problem in Nginxproxy
Post by: MRatWork on 2015-02-10, 22:49:59
If using ssl for nginx-proxy, try modified all link (css, js and image) inside wordpress from http:// to https://.
Title: Re: Problem in Nginxproxy
Post by: vyjhala on 2015-02-11, 04:51:45
Hi,
Admin

Finally I Fixed problem I unable access https in NginxProxy   it is because  of Varnish Cache Service.

Therefore I removed that Varnish Cache Service, Now I able  use https  in NginxProxy with Apache  without any problem.

:) :) 

Title: Re: Problem in Nginxproxy(Solved)
Post by: MRatWork on 2015-02-11, 05:03:58
Yes, Varnish still setup with basic setting by Kloxo-MR. Need more modify by user.
Title: Re: Problem in Nginxproxy(Solved)
Post by: MRatWork on 2015-02-11, 05:05:19
Instead using varnish, better combine enable apc/xcache in php, enable pagespeed in apache and install cache manager in application.
Title: Re: Problem in Nginxproxy(Solved)
Post by: vyjhala on 2015-02-12, 06:03:37
Ok I already install xcache for php  and pagespeed in apache  but i did not install apc  and cache manager  i will install this soon .

My website run perfectly in  NgnixProxy and Apache Both With SSL(https) After remove Varnish.
 
I am using Cloudflare  Free Plan (https://www.cloudflare.com) and they use proxy for optimize decrease main server load and they also support CDN(Content Delivery Network) Provide Secure From Bots Attack  and Basic DDOS Protection in Free Plan   .
 
Cloudflare  also  Provide Free COMODO SSL For all Users. For that I Just Create Self Sign Certificate  on  my root server  you can read full information about Free SSL  from this link .

https://www.cloudflare.com/ssl

www.incapsula.com also good For CDN((Content Delivery Network) Secure From Bots Attack ,They Provide Free Plan too but they  not support SSL  and DDOS Protection  in Free plan.

I am using Ngnix for get Real IP from Cloudflare Proxy   and Apache for  functionality. Therefore I Decide to use NgnixProxy combine with Apache For Best Result.

Keep Improve Kloxo Cpanel  Add More Functionality  Direct CMS Installation From Kloxo Cpanel (ex wordpress) .

 (IP) Installatron Plugin specially for Kloxo check this link :- http://installatron.com/plugin/download/kloxo .

OR Softaculous

Thank you   For Your Support :):)
Title: Re: Problem in Nginxproxy(Solved)
Post by: MRatWork on 2015-02-12, 06:43:58
Read http://forum.mratwork.com/kloxo-mr-development/%286-5-1a%29-webwebcache-servers-benchmark/msg28586/#msg28586

At latest version of Kloxo-MR (6.5 or 7.0) already enable microcache for nginx/nginx-proxy.