T
T
Tonako2015-11-29 10:50:04
CentOS
Tonako, 2015-11-29 10:50:04

How to disable redirect from http to https?

It costs centos, ispmanager, nginx
has an ssl certificate,
but I can’t open the site via http protocol, it immediately redirects to https version of
htaccess is empty

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
Tonako, 2015-11-29
@Tonako

sort of found it)
return 301 https://$host$request_uri;

I
Igor, 2015-11-29
@unitby

And telnet on the 80th port passes? and what does it send back? Also a redirect?
Well, besides htaccess, I would like to look at the nginx configuration.
If the site has ever been opened via https, then most modern browsers automatically start opening via https instead of http when it is requested.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question