##Wampserver configuration The first step: open httpd.conf in the path shown in the figure,
ctrl + f
Enter virtual hosts
Find this line of code and remove the # in front of include
ctrl + f
Enter deny
Find this line of code and change Deny from all to Allow from all.
Step 2: Open the httpd-vhosts.conf file with the path shown in the figure
Copy the following code and place it above this line of code
After copying, the port number should be the same as the port number you modified (if the port number has not been modified, you do not need to change the port number here), DocumentRoot is the same as the DocumentRoot path you configured before, ServerName and ServerAlias write your domain name ;
For example the following picture:
Step 3: Open the windows-->system32 -->drivers-->etc-->hosts file in the C drive, copy the two lines #127.0.0.1 localhost
, change to 127.0.0.1 www.newjijin.com
and 127.0.0.1 newjijin.com
save (here takes www.newjijin.com as an example)
Step 4: Restart wamp, and then enter www.newjijin.com in the browser.