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 >