码迷,mamicode.com
首页 > 其他好文 > 详细

wamp虚拟主机

时间:2017-06-12 13:15:30      阅读:131      评论:0      收藏:0      [点我收藏+]

标签:listen   项目   虚拟主机   err   sys   别名   ide   oca   nbsp   

wamp服务器增加9090端口访问项目:

# Virtual Hosts
#

<VirtualHost *:80>
    ServerName localhost
    DocumentRoot D:/wamp/www
    <Directory  "D:/wamp/www/">
        Options +Indexes +Includes +FollowSymLinks +MultiViews
        AllowOverride All
        Require local
    </Directory>
</VirtualHost>


listen 9090
<VirtualHost *:9090>
    ServerName localhost:9090
    DocumentRoot D:/wamp/www/YPB2C/home
    <Directory  "D:/wamp/www/YPB2C/home/">
        Options +Indexes +Includes +FollowSymLinks +MultiViews
        AllowOverride All
        Require local
    </Directory>
</VirtualHost>

#

windows增加别名解析至ip地址:

C:\Windows\System32\drivers\etc
127.0.0.1:9090 testyipart.com

 

wamp虚拟主机

标签:listen   项目   虚拟主机   err   sys   别名   ide   oca   nbsp   

原文地址:http://www.cnblogs.com/haveadream435/p/6992226.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!