首页 > 代码库 > XAMPP 设置虚拟站点

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>