The DocumentRoot in Apache is configured as a newly created folder,
but localhost and 127.0.0.1 still access the previous default directory?
The rest of the items are all fine!
localhost and 127.0.0.1 both access the local area by default. You need to configure the virtual host apache. After changing it, you need to add the domain name you defined in the hosts file.
Similarly: 127.0.0.1 Your domain name
To clarify, you don’t know how to configure the Apache path manually. If you don’t, please use software to configure it.
You also need to modify the default path of the Vhost file in Apache!
localhost and 127.0.0.1 both access the local area by default. You need to configure the virtual host apache. After changing it, you need to add the domain name you defined in the hosts file.
Similarly: 127.0.0.1 Your domain name
To clarify, you don’t know how to configure the Apache path manually. If you don’t, please use software to configure it.
You also need to modify the default path of the Vhost file in Apache!