久久青草精品A片狠狠,日韩欧美视频一区二区,亚洲国码AV日韩,国产精品黄在

如何配置wamp多端口多個(gè)虛擬主機(jī)

2016-08-03 01:22:45 9818

一、在wampinapacheApache2.4.4confextrahttpd-vhosts.conf 修改如下 



代碼如下:


NameVirtualHost *:80 


<VirtualHost *:80> 

DocumentRoot "E:/website/pxsj" 

ServerName host7.com 

ServerAlias 192.168.1.116 

<Directory "E:/website/pxsj"> 

Options Indexes FollowSymLinks 

AllowOverride None 

Order allow,deny 

Allow from all 

</Directory> 

</VirtualHost> 


NameVirtualHost *:8080 


<VirtualHost *:8080> 

DocumentRoot "E:/website/whsj" 

ServerName host10.com:8080 

ServerAlias 192.168.1.116:8080 

<Directory "E:/website/whsj"> 

Options Indexes FollowSymLinks 

AllowOverride None 

Order allow,deny 

Allow from all 

</Directory> 

</VirtualHost> 


二、wampinapacheApache2.4.4confhttpd.conf 修改如下: 


在該文件中查找“Listen”一詞修改 

復(fù)制代碼 代碼如下:wamp


Listen 80 

Listen 8080 

# Virtual hosts 
# Include conf/extra/httpd-vhosts.conf去掉前面的#,這樣就開啟了httpd-vhosts虛擬主機(jī)文件。這時(shí)候重啟環(huán)境 

提交成功!非常感謝您的反饋,我們會(huì)繼續(xù)努力做到更好!

這條文檔是否有幫助解決問題?

非常抱歉未能幫助到您。為了給您提供更好的服務(wù),我們很需要您進(jìn)一步的反饋信息:

在文檔使用中是否遇到以下問題: