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

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bd84ee-30941.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bd84ee-30941.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?