Home >Backend Development >PHP Tutorial >www.sony.com.cn/productclub wamp configure virtual host
1. First open the apache configuration file httpd.conf, and remove the # in front of #Include conf/extra/httpd-vhosts.conf to enable the virtual host function
2. Configure localhost first to avoid problems when accessing localhost later. , my wamp project root directory is D:wampwww. Add the following information to the configuration file under Apache's Apache/Conf/EXTRA httpd-vhosts.conf;
& lt; virtualHost *: 80 & gt;
DocumentRoot "d:/wamp/www"
serverName wwwwww w.xxxxxxx. com & lt; Directory "d:/wamp/www" & gt;
Options Indexes FollowSymlinks
Alowover None
Order Allow, DENY
Allow from All
& LT;/Directory & GT. ; T & lt;/virtualhost & gt;
3, modify C: Open the host file under WindowsSystem32driversetc with Notepad and add 127.0.0.1 to the last line