After the local phpstudy configured virtual domain name prompt access this site only supports UC browser access!

 

 Solution:

A hosts configuration:

1. Open the hosts file with an editor, location: C: \ \ System32 \ under Windows drivers \ etc directory

Example:

At the end of the hosts file to add the following code:

1

127.0.0.1      www.tp5.com

18e57189ee75294212b9d15b44136b8.png

Second apache configuration:

1. Edit httpd.conf file, open the virtual host, location: in the apache installation directory, namely phpstudy installation phpStudy \ Apache \ conf directory, find Includeconf / extra / httpd-vhosts.conf, remove the #

11c4f64e291af7ac60427002e511f1a.png

2. Go to open the virtual host file httpd-vhosts.conf domain name configuration, location: \ phpStudy \ Apache \ under conf \ extra directory

Configuration rules:

 

Remember to restart the server.

Guess you like

Origin www.cnblogs.com/luojie-/p/12152240.html