XAMPP 設置虛擬站點

1. url 劫持php

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

 

 

2. 設置虛擬路徑html

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

<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>
相關文章
相關標籤/搜索