1. Guarantee the Httpd.conf
LoadModule Php5_module
Phpinidir
These two are not commented out by the #
2. Open Multi-site configuration
httpd.conf below: Include conf/extra/httpd-vhosts.conf Remove the previous # comment
3.http-vhosts.conf Configuration
Directories in. Wamp\bin\apache\apache2.4.9\conf\extra;(specific case-specific search)
The following wording can be written in the http-vhosts.com above
<virtualhost *:> ServerAdmin [email protected]-host2.example.com " c:/wamp/www/development" #此处为要解析网站的位置 ServerName development.test.com # Here is the domain name "logs/dummy-host2.example.com-error.log" to be resolved " Logs/dummy-host2.example.com-access.log " Common</VirtualHost>
These two places are the two most important.
4. If the test phase can be vhost in the system to configure the domain name
Vhost Path: C:\Windows\System32\drivers\etc\vhost
5. Restart the server.
Restart All Services
Wamp Virtual Host Configuration