XAMPP 设置虚拟站点

1. url 劫持

C:\Windows\System32\drivers\etc\hosts
127.0.0.1 pro

 

 

2. 设置虚拟路径

D:\XAMPP\apache\conf\extra\httpd-vhosts.conf

<VirtualHost *:80>
    DocumentRoot "D:/XAMPP/htdocs"
    ServerName localhost
</VirtualHost>
<VirtualHost *:80>
 ServerName origins
 DocumentRoot "E:/WeEngine/origins"
<Directory "E:/WeEngine/origins"> 
 Options FollowSymLinks IncludesNOEXEC Indexes
 DirectoryIndex index.html index.htm index.php
 AllowOverride all 
 Order Deny,Allow 
 Allow from all 
 Require all granted
</Directory>
</VirtualHost>

 

posted @ 2014-06-17 10:18  立己达人  阅读(373)  评论(0编辑  收藏  举报