Wampserver configuration

##Wampserver configuration The first step: open httpd.conf in the path shown in the figure,

Enter image description

ctrl + fEnter virtual hostsFind this line of code and remove the # in front of include

Enter image description

ctrl + fEnter denyFind 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

Enter image description

Copy the following code and place it above this line of code

Enter image description

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:

Enter image description

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.comand 127.0.0.1 newjijin.comsave (here takes www.newjijin.com as an example)

Step 4: Restart wamp, and then enter www.newjijin.com in the browser.Enter image description

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325809965&siteId=291194637
Recommended