Virtual hosting is forcing https - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Virtual hosting is forcing https (/showthread.php?tid=76562) |
Virtual hosting is forcing https - vinezof2 - 05-25-2020 hi, I am Brazilian so sorry the bad English, this is my first post here sorry if i make thing wrong. I am codeigniter 3 user and I starting migration for ci 4 reading the docs, in the docs is recommended use virtual hosting and i succed but the codeigniter is forcing the https protocol and this is bad because i don't have a certifiqued. I open the file public/.htaccess and I saw that he is sending all requests to https. the question is I realy need change the .htaccess file every time or has a configuration for change this? Thank you and sorry any thing. RE: Virtual hosting is forcing https - jreklund - 06-01-2020 I'm sorry but you must have turned on the $forceGlobalSecureRequests setting, there are nothing in public/.htaccess that force an secure connection. RE: Virtual hosting is forcing https - vinezof2 - 06-25-2020 i have discovered what happened, my server name in hosts was .dev and the Google pay the .dev domain e force all requests to .dev to be https. RE: Virtual hosting is forcing https - InsiteFX - 06-25-2020 You can no long use .dev it redirects to google. SEE: A domain just for developers RE: Virtual hosting is forcing https - dave friend - 06-25-2020 (06-25-2020, 08:42 AM)InsiteFX Wrote: You can no long use .dev it redirects to google. The whole idea of top-level domain ownership feels evil to me. ********** EDIT ************ I went back to the link @InsiteFX shared and came away with a different understanding. First, Google doesn't "own" the .dev TLD. It is only registering domain names to the .dev TLD which is a service you can buy from any number of other vendors. I'm pretty sure that the OP problem is a Chrome browser only thing where a .dev must use https or the browser won't display it. (This is evil too IMO) AFAIK, no other browsers do this. At least they did not when I ran into this issue a few years ago. I had a local development setup that suddenly stopped working. Took me a couple of days of wasted time to figure it out. RE: Virtual hosting is forcing https - vinezof2 - 06-25-2020 (06-25-2020, 09:07 AM)dave friend Wrote:(06-25-2020, 08:42 AM)InsiteFX Wrote: You can no long use .dev it redirects to google. i think this is a absurd! they shouldn't have the right to do that, forbid me to use a domain on localhost and charge for it. RE: Virtual hosting is forcing https - cvlancvlan - 06-29-2020 app/Config/App.php $forceGlobalSecureRequests = false |