To add a domain name dashu.com as an example: Create a new file under Wamp\alias dashu.com.config
Namevirtualhost Dashu.com<virtualhost dashu.com>DocumentRoot"D:/program files/wamp/www/xjdold/"ServerName Dashu.com<directory "D:/program files/wamp/www/xjdold/" >Options followsymlinks Indexes allowoverride all Order deny, allow to from all#Require All granted</directory></virtualhost><virtualhost localhost>DocumentRoot"D:/program files/wamp2.1/www"ServerName localhost<directory "D:/program files/wamp2.1/www" >Options followsymlinks Indexes allowoverride all Order deny, allow to from all#Require All granted</Directory></VirtualHost>
Errors that may occur:
1.wamp Multi-domain configuration only the first domain name is parsed
See if VirtualHost is missing before Namevirtualhost dashu.com, the old version of Apache, no namevirtualhost,<virtualhost> The label doesn't work (the new Apache has removed the namevirtualhost configuration)
2. Report the following error
Internal Server Error
The server encountered an internal error or misconfiguration and is unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything yo U might has done so may has caused the error.
More information on this error is available in the server error log.
Then check Apache error log to find an error: Configuration error:couldn ' t perform authentication. AuthType not set
WORKAROUND: If Apache version drizzle 2.4, remove require all granted this line, if greater than 2.4, remove allow from all
Wamp Multi-domain Configuration