1, modify the httpd.conf configuration file, the port listening to more than, I listen to the 80 port and 8080 port, you can use the password from the command prompt tool input netstat-n-A to see if the port started;
#Listen 12.34.56.78:80
Listen
Listen 8080
2, open the virtual site, the following second sentence of the comments, open the Supplemental configuration file httpd-vhosts.conf file, and then the httpd.conf file in the ServerRoot and directory configuration is not valid.
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
3, configuration conf/extra/httpd-vhosts.conf file, the following paste out my configuration changes, can refer to, there is a separate project and a project folder under all projects
#其他所有项目
<virtualhost *:8080>
documentroot d:/wamp/www
ServerName localhost
serveralias localhost
</VirtualHost>
#就业
<virtualhost *:80>
ServerAdmin Webmaster@dummy-host.localhost
documentroot "d:/wamp/www/wkjob/public"
ServerName localhost
Serveralias localhost
errorlog "logs/dummy-host.localhost-error.log"
customlog "logs/ Dummy-host.localhost-access.log "Common
<directory" d:/wamp/www/wkjob/public ">
Options Indexes FollowSymLinks
allowoverride None
Order allow,deny allow from
</Directory>
4, after modifying the configuration file restart Apache service, with localhost access to the employment project, with localhost:8080 access to all other projects, if the failure to view the corresponding log files.