Tutorial on how to create multiple sites locally with wampserver software

Time: 2017-12-28Source: Huajun Software TutorialAuthor: monster

1. Open the installation directory of the wampserver software, find and open the bin folder, then open the apache folder, then open the Apache2.2.21 folder, then open the conf folder, and find the httpd.conf file

Tutorial on how to create multiple sites locally with wampserver software
2. Open the httpd.conf file with natepad++, find Include conf/extra/httpd-vhosts.conf, remove the # number in front, and save it. This code is around line 466. You can also search directly with ctrl+f.
Tutorial on how to create multiple sites locally with wampserver software
3. Then open the extra folder in the conf folder
Tutorial on how to create multiple sites locally with wampserver software
4. Find the httpd-vhosts.conf file and open it with natepad++
Tutorial on how to create multiple sites locally with wampserver software
5.Add the following code in the last line
<VirtualHost *:80>
ServerName ceshi
DocumentRoot "D:/wamp/ceshi"
<Directory "D:/wamp/ceshi">
Options Indexes FollowSymLinks
AllowOverride all
Order Allow,Deny
Allow from all
</Directory>
</VirtualHost>
then save
ceshi is the name of the new site and the local open domain name
Tutorial on how to create multiple sites locally with wampserver software
6. Follow the path "D:/wamp/cishi" given by the code added in the previous step to the wamp folder on the D drive and create a new folder named ceshi. This folder is the root directory of the website.
Tutorial on how to create multiple sites locally with wampserver software
7. Go to the C drive and open the folder Windows, the folder System32, the folder drivers, the folder etc.
Tutorial on how to create multiple sites locally with wampserver software
8. Find the HOSTS file in the etc folder. This file has no suffix. Open it with natepad++
Tutorial on how to create multiple sites locally with wampserver software
9. Add a new line of code here
127.0.0.1ceshi
Then save and exit
Tutorial on how to create multiple sites locally with wampserver software
10. The new site named ceshi is now built. The root directory is the ceshi folder and the domain name is
http://ceshi I put an index.php in the root directory to test it. Let’s take a look at the effect.
Tutorial on how to create multiple sites locally with wampserver software
That's itWampServerTutorial on how to create multiple sites locally, and moreWampServerPlease go to the software related tutorialsHuajun Software Park Software Tutorial Area

Related articles更多>>

Popular recommendations