Local Yii2 framework, https will be redirected through virtual host access

Local Yii2 framework, https will be redirected through virtual host access

the Yii framework configured on the company"s computer, and the access is normal. I uploaded the entire frame directory to the remote GIT repository, and then pulled the code to my computer. After configuring the virtual host of apache, I tried to use the domain name www.yii2.cc to access the local Yii, but always jumped to the Https://www,yii2.cc address , resulting in access failure. Is it my framework configuration problem to confirm that there is nothing wrong with my apache configuration?

Please give me some advice

related codes

Local host
127.0.0.1 www.akroot.cc
127.0.0.1 www.yii2.cc
apache Virtual Host configuration
< VirtualHost *: 80 >

ServerAdmin webmaster@dummy-host2.example.com
  DocumentRoot "D:\code\yii2\web"
ServerName www.yii2.cc

< / VirtualHost >

clipboard.png

clipboard.png

Nov.03,2021

www.yii2.cc is someone else's domain name. Check to see if your hosts file has been changed to local

.
Menu