D
D
Dmitry Vasechka2019-02-18 15:35:28
Apache HTTP Server
Dmitry Vasechka, 2019-02-18 15:35:28

Why does it redirect to https when substituting any domain instead of localhost?

Good day!
There was a need to set up a domain on a local server (apache + mysql, an assembly like openserver / denver / xampp is not ready). I registered the necessary changes in the httpd.conf and host files. Everything works, only one caveat, for some reason it automatically redirects to https://, which returns ERR_CONNECTION_REFUSED. The site itself does not have any redirects to https.
Changes in files:
httpd.conf

NameVirtualHost *:80
 <VirtualHost *:80>
   ServerName mysite.dev
   DocumentRoot "C:/Program Files/Apache/htdocs/"
   ErrorDocument 404 /
   ErrorLog C:/nul
</VirtualHost>

hosts
127.0.0.1 mysite.dev

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Satisfied IT, 2019-02-18
@MusicDeveloper

Perhaps this is the reason
https://laravel-news.com/chrome-63-now-forces-dev-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question