首页 >后端开发 >php教程 >windows 域名+虚拟目录 (php)

windows 域名+虚拟目录 (php)

WBOY
WBOY原创
2016-06-23 14:29:00988浏览


1.修改windows 域名
C:\WINDOWS\system32\drivers\etc\hosts
127.0.0.1       localhost

192.168.0.100   abc
127.0.0.2    a

2.修改apache的虚拟目录
C:\xampp\apache\conf\extra\httpd-vhosts.conf

 ServerName tradesns
 DocumentRoot D:/tradesns
 
  Options FollowSymLinks IncludesNOEXEC Indexes
  DirectoryIndex index.html index.htm default.htm index.php default.php
  AllowOverride all
  Order Deny,Allow
  Allow from all
 

 


 ServerName a
 DocumentRoot D:/tradesns2
    
     Options FollowSymLinks IncludesNOEXEC Indexes
     DirectoryIndex index.html index.htm default.htm index.php default.php
     AllowOverride all
     Order Deny,Allow
     Allow from all
    

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn