Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

local MAMP Pro redirect to https

I have installed Mamp Pro to run my local host and it has been working great for a year or so but recently when I start it up and go to one of my hosts it redirects to a https connection and throws an error:

"Safari Can't Open Page. Safari can't open page because Safari can't establish a secure connection to the server."

It works fine in Chrome but Safari is giving me issues. I've restarted my computer, restarted MAMP and nothing has worked so far. Any help would be greatly appreciated.

like image 601
kurrle Avatar asked Dec 02 '22 11:12

kurrle


2 Answers

If you are using .dev domains for local development ( mydomain.dev ) , try something else e.g. mydomain.local, mydomain.lcl

This happened to me with macOS 10.13.2, in both Safari and Chrome (63.0.3239.84).

After reading this post, it seems a better choice to just change my .dev domains than mess with browser default settings.

like image 153
stol Avatar answered Dec 09 '22 22:12

stol


Do you have installed the update to MacOS 10.13.2? After upgrading to this version no website on localhost can be started. Every host redirects to a https connection.

like image 41
Maik Puetz Avatar answered Dec 09 '22 21:12

Maik Puetz