xampp软件配置虚拟目录

来源:互联网 发布:go语言 python 编辑:程序博客网 时间:2024/06/06 03:59

第一步:先找到安装软件的目录我这里是放到D盘了 D:xammp;






第二步: 根据路径找到相应的 httpd-vhost.conf  文件;   D / xammp / apache / conf / extra / httpd-vhost.conf


.

.
.


.



第三步: 打开文件 在最下面添加一下文件:

<VirtualHost *:80>
 ServerName wwww.com
 DocumentRoot "D:/wwww"
<Directory "D:/wwww"> 
 Options FollowSymLinks IncludesNOEXEC Indexes
 DirectoryIndex index.html index.htm index.php
 AllowOverride all 
 Order Deny,Allow 
 Allow from all 
 Require all granted
</Directory>
</VirtualHost>



第四步: 获取本机IP地址使用 ipconfig  命令 获取本地 IP 192.168.0.112



第五步: 根据路径找到 hosts 文件  路径: C:/ Windows  / System32  /  drivers  /  etc / hosts





第六步:打开 hosts 文件   添加信息 本地IP及 域名

本地IP:192.168.0.112 
域名: wwww.com



原创粉丝点击