Wamp multi-port, multisite configuration

Source: Internet
Author: User
Tags multisite

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.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.