网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 生活知识 知识问答

wampserver配置多端口多目录多站点

时间:2024-11-02 16:53:07

1、点击wampserver,选择Apache-》httpd.conf

wampserver配置多端口多目录多站点

2、查找httpd-vhosts.conf,并去掉该行前面的#号

wampserver配置多端口多目录多站点

3、在文件最末尾,添加 Include "E:/happy/*.conf"(目录可以自己定义),保存,并关闭

wampserver配置多端口多目录多站点

4、打开你添加引入配置文件的目录,新建后缀名为conf的文件

wampserver配置多端口多目录多站点

5、打开刚刚新建的文件,输入<VirtualHost *:80> DocumentRoot "E:\wamp\www" ServerName localhost </VirtualHost>listen 88<VirtualHost *:88>ServerAdmin webmaster@dummy-host2.example.comDocumentRoot "E:/wamp/www/oa/web"ServerName www.123.com<Directory "E:/wamp/www/oa/web">Options Indexes FollowSymLinks AllowOverride None</Directory></VirtualHost>加粗部分可重复利用,修改端口号及项目根目录即可

wampserver配置多端口多目录多站点

6、重启wampserver服务器成功后,打开浏览器,输入localhost:端口号,比如localhost:88

wampserver配置多端口多目录多站点wampserver配置多端口多目录多站点

7、每天有个好心情,我的愿望是天天开心

wampserver配置多端口多目录多站点
© 2026 智德知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com