Teacher, my apache port has been changed to 8081. I use localhost:8081 to access it. When I access the virtual site created by the site domain name management and add the port number, the access result is still the same as the access result of localhost:8081. How is this? What's going on?
Because the virtual domain name site you created needs to be mapped in the host file of the C drive, localhost 127.0.0.1, and the domain name you created is also 127.0.0.1 www.xxxx.com, so the difference is only the access port. , if the accessed ports are the same, then the access paths are the same. The virtual domain names created are different, the ports are the same, but the configured site paths are different, and the web page addresses visited are also different!
Directory not set