12 7 月 2013

Incapsula的免费cdn是不支持ssl的,及wordpress怎么解决使用了cdn后无法登陆后台

 

Incapsula

做国外英文站的话,我觉得Incapsula的免费cdn是很好的,每个月都有50G流量,博客足够了。

我的http://own.nu就在上周用了它的加速,但是出现了一些问题。

出现的问题

现象:主页及文章页面都是可以打开的,但是后台就是登陆不了,服务器提示找不到资源。

而我取消cdn加速以后,又可以正常使用了。

经过我的分析,原来Incapsula的免费cdn是不支持ssl的。因为我的后台是启用了ssl保护所以出问题了。

下面是我和Incapsula客服的交流:

Antonio – Support, Jul 12 08:46 (IDT):

Hello,

Thank you for sharing with us your solution.
HTTPS connection is supported only under paid plans at Incapsula. HTTPS connection requires to issue an SSL certificate for your web-site and publish it on our proxies.
If you have additional questions, or if we can be of further assistance, please let us know.

Thank you,
Antonio
[Incapsula Support Team]

 


blogfeng, Jul 10 13:58 (IDT):

Well,
I m glad to provide my problem and how i fixed it.

my problem is that when i started to use ur service ,i found i cannot log in from /wp-admin(my site is a blog setted by wordpress).

and from then on ,i searched for what wrong with it.

and i noticed that my homepage is url ‘http://own.nu’; and it worked well.but my log page is ‘https://own.nu/wp-admin’ and it is wrong to reach it. ur server says it cannot find this resource.

so i thought of maybe the key is the ssl way just as ‘https’,and ur service cannot support this connection.

at last ,i reset my wordpress set to cancel the ssl protected connect. Let my log page be the url ‘http://own.nu/wp-admin’;.

Finally,the problem is fixed perfectly.

 


Ziv – Support, Jul 10 11:48 (IDT):

Hi,

Thank you for updating, Can you please share what was the issue and how you fixed it?

Thank you,
Ziv
Support Engineer
[Incapsula Global Support Team]

 


blogfeng, Jul 10 11:42 (IDT):

ttank u ,i have correct it by my self.

 


blogfeng, Jul 10 11:02 (IDT):

when i open this url “http://www.own.nu”,it is nomal.
However when i wanna to log in my wordpress by the url ” http://www.own.nu/wp-admin”;. I cannot reach it.And your server says it cannot find this resource.

 


Ziv – Support, Jul 10 10:56 (IDT):

Hi,

Thank you for contacting us.
We were able to enter this url with no issue.
Could you please provide us with detailed info? Please attached the presented error as well.

I’d like also to provide you with the Incapsula’s extension for WordPress:
http://incapsula.zendesk.com/entries/20276196-WordPress

Thank you,
Ziv
Support Engineer
[Incapsula Global Support Team]

 


blogfeng, Jul 10 10:29 (IDT):

my site of wordpress cannot log in from /wp-admin

 


blogfeng, Jul 10 10:29 (IDT):

mntcw.x.incapdns.net

 

 

我是怎么解决的呢?

 

打开wordpress的config.php

 

找到这一项

define(‘FORCE_SSL_ADMIN’, true);

 

把它改为

define(‘FORCE_SSL_ADMIN’, false);

意思就是关闭对admin文件夹的ssl保护