Problem with https


#1

when i set my dns to cloud flare when its in http format every things is ok
but when i active my https in my server and i set dns to cloud flare
my site be down
and get error can not reach you site
please help me
how can i fix this problem


#2

What error do you get? Can you post a screenshot? Also, what is the site?


#3


you can see


#4

Do you still get this error if you pause CloudFlare?


#5

before i set https for my site
my site was ok
but after buy ssl certificate for my site
and after instal ssl on my site
with cloud flare dns my site dont work
but if i change my dns to other dns for example host company dns
my site its ok and work


#6

this is the error:

This site can’t be reached

chech in my site:


#7

i can resolve my problem
the problem was for this line:

HttpContext.Current.Response.AddHeader("X-FRAME-OPTIONS ", “DENY”);

i delete that
and now every things is ok


#8

Hi reza,
can I ask you where did you find that line?
HttpContext.Current.Response.AddHeader("X-FRAME-OPTIONS ", “DENY”);
thank you


#9

this header was in my header
i had set it in web.config
and in all of my request, I sent it
I delete it
and now every thing is ok


#10

This topic was automatically closed after 30 days. New replies are no longer allowed.